All pastes #987832 Raw Edit

Anonymous

public php v1 · immutable
#987832 ·published 2008-04-17 00:27 UTC
rendered paste body
<?php  session_start();     // API extension usage: true - API extension, false - COM usage  define ('USEAPIEXT', true);  define ('CRLF', "\r\n");    // Include files  require_once('function.php');  require_once('accounts.php');  require_once('domains.php');        if (USEAPIEXT) {    require_once('api/api.php');	  require_once('api/domain.php');    require_once('api/account.php');    require_once('api/remoteaccount.php');	  require_once('api/statistics.php');	  require_once('api/schedule.php');	  $api = new MerakAPI();  } else $api = new COM("MerakCOM.APIObject");    $osversion = (int) $api->GetProperty("C_OS");  define('osversion',$osversion==0?"windows":"linux");      // System files  include('layouts.html');  include('languages.html');    // Lang path  $langpath = $lang_settings[$language][1];  require_once($langpath . "alang.html");  // Skin path  $skin_dir = $layout_settings[$layout][1];  $days = array(0=>"su","mo","tu","we","th","fr","sa");  $dayslang = array(0=>"TAntivirusSettingForm_Su","TAntivirusSettingForm_Mo","TAntivirusSettingForm_Tu","TAntivirusSettingForm_We","TAntivirusSettingForm_Th","TAntivirusSettingForm_Fri","TAntivirusSettingForm_Sa");  // Current path  $global['backpath'] = "";  //Headers  header("Expires: " . gmdate("D, d M Y H:i:s"). " GMT");  if (@!$noheadercache) { if ($SERVER_PROTOCOL == "HTTP/1.0") $nocache = "Pragma: no-cache"; else $nocache = "Cache-Control: no-store, no-cache, must-revalidate"; header($nocache); }  // Charset  if (@$CHARSET) $meta = '<meta http-equiv="content-type" content="text/html; charset='.@$CHARSET.'">';?>