HTML_CHARSET); if($CONF->USE_START_SCREEN==1 && !@in_array($_SERVER['REMOTE_ADDR'], $CONF->INTERNAL_SUBNET)) require_once($CONF->START_SCREEN); require_once(C_DIR.'/system/domain.php'); require_once(C_DIR.'/system/browser.php'); if($CONF->USE_WILDCARD_SESSION==true && $CONF->FORCE_PRIMARY_DOMAIN==true && is_numeric($CONF->PRIMARY_DOMAIN)) ini_set('session.cookie_domain','.'.$CONF->DOMAINS[$CONF->PRIMARY_DOMAIN]); //magic_quotes_gpc if(ini_get('magic_quotes_gpc')) { foreach(array('_GET', '_POST', '_COOKIE') as $super) { if(count($GLOBALS[$super])>0) foreach($GLOBALS[$super] as $k => $v) { $GLOBALS[$super][$k] = stripslashes_r($v); } } } function stripslashes_r($str) { if(is_array($str)) { foreach ($str as $k => $v) $str[$k] = stripslashes_r($v); return $str; } else { return stripslashes($str); } } //page generation timer function GetMicroTime() { list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } if($CONF->SHOW_PGT==true) $timestart=GetMicroTime(); ?>CACHE_LIST = $CONF->COMPILE_CACHED; $this->CACHE_BIN = $CONF->COMPILE_CACHED; $this->SKIP_DIR = $CONF->COMPILE_EXCLUDE; $this->INC_PREFIX = $CONF->COMPILE_PREFIX; $this->CACHE_DIR = (empty($custom_dir) ? CACHE_DIR.'/'.$group : CACHE_DIR.'/'.$custom_dir); $this->CORE_DIR = $this->CACHE_DIR.'/core'; $this->CACHE_FILE = $this->CACHE_DIR.'/list.inc'; $entire_bin_class = $this->CACHE_DIR.'/'.$group.'_class.php'; $this->COMPONENTS = ($admin_dir==false ? C_DIR : ADMIN_C_DIR); if($CONF->USE_SINGLE_FILE==true && file_exists($entire_bin_class)) { require_once($entire_bin_class); return true; } if(!is_dir(CACHE_DIR)) mkdir(CACHE_DIR); if(!is_dir($this->CACHE_DIR)) mkdir($this->CACHE_DIR); if(!is_dir($this->CORE_DIR)) mkdir($this->CORE_DIR); if($CONF->USE_SINGLE_FILE==true && !file_exists($entire_bin_class)) $this->CACHE_BIN=false; if($this->CACHE_BIN==false && count($list=$this->get_file_list($group))>0) foreach($list as $module_dir => $modules) { $bin_class = $this->CORE_DIR.'/class.'.$module_dir.'.php'; $obj_name = strtoupper(str_replace($group.'_', '', $module_dir)); if(!file_exists($bin_class)) $this->CACHE_BIN=false; /////////////////////////////////////////////////////////////////////////////////////////////////////////// if($this->CACHE_BIN==false) { $code=''; if(count($modules)>0) foreach($modules as $module) { $linia=$start=$end=''; $functions=fopen($this->COMPONENTS.'/'.$module_dir.'/'.$module, "r"); while(!feof($functions)) { $linia=fgets($functions, 2048); if(stristr($linia,'//CLASS-END')) $end=true; if($start==true && $end==false) $code.=$linia; if(stristr($linia,'//CLASS-START')) $start=true; } fclose($functions); } $code=''.$obj_name.' = new '.$module_dir.'(); $this->'.$obj_name.'->_PATH = '.($admin_dir==true ? 'ADMIN_':'').'C_PATH.\'/\'.'.strtolower($module_dir).'; $this->'.$obj_name.'->PATH = '.($admin_dir==true ? 'ADMIN_':'').'C_PATH.\'/\'.'.strtolower($module_dir).'; $this->'.$obj_name.'->_DIR = '.($admin_dir==true ? 'ADMIN_':'').'C_DIR.\'/\'.'.strtolower($module_dir).'; $this->'.$obj_name.'->DIR = '.($admin_dir==true ? 'ADMIN_':'').'C_DIR.\'/\'.'.strtolower($module_dir).'; ?>'; file_put_contents($bin_class, $code); $entire_code.=$code; } /////////////////////////////////////////////////////////////////////////////////////////////////////////// if($CONF->USE_SINGLE_FILE==false) require_once($bin_class); //include 1/? of the multiple files } if($this->CACHE_BIN==false) { $entire_code=str_replace('?>USE_SINGLE_FILE==true) require_once($entire_bin_class); } function get_file_list($group) { if(file_exists($this->CACHE_FILE) && $this->CACHE_LIST==true) { return unserialize(file_get_contents($this->CACHE_FILE)); } else { if(!is_dir($this->CACHE_DIR)) mkdir($this->CACHE_DIR); if(!is_dir($this->CORE_DIR)) mkdir($this->CORE_DIR); if($dir=opendir($this->COMPONENTS)) { while(($module_dir=readdir($dir))!=false) { //parse dirs if($module_dir!="." && $module_dir!=".." && is_dir($this->COMPONENTS.'/'.$module_dir) && substr($module_dir, 0, strlen($group.'_'))==$group.'_' && !@in_array($module_dir, $this->SKIP_DIR)) { //parse files in dirs if($dir2=opendir($this->COMPONENTS.'/'.$module_dir)) { while(($file=readdir($dir2))!=false) { if(stristr($file, '.php') && substr($file, 0, strlen($this->INC_PREFIX))==$this->INC_PREFIX) { if(substr($file, 0, strlen($this->INC_PREFIX.$this->INC_PREFIX))==$this->INC_PREFIX.$this->INC_PREFIX && ADMIN!==true) continue; $class_name=str_replace('.php', '', substr($file, strlen($this->INC_PREFIX))); $list[$module_dir][] = $file; } } } } } file_put_contents($this->CACHE_FILE, serialize($list)); return $list; } } } } if(ADMIN===true) { $CS=new load(); $CS->compile('cs', false); $CSA=new load(); $CSA->compile('csa', true); } else { $CS=new load(); $CS->compile('cs', false, 'cs_mini'); } //class aliases & backwards compatibility aliases provide $DB=$CS->DB; $F=$CS->FORM; $S=$CS->STRING; $KOMPONENTY=$CS->FORM; $LINK=$CS->URL; $CS->A=$CSA; $CS->CONF=$CONF; //ustawienia z panelu class ustawienia { function ustawienia() { global $CS; $sql=$CS->DB->query(' SELECT * FROM _ustawienia '); while($dane=$CS->DB->fetch_array($sql)) { $this->CONFIG[$dane['klucz']] = $dane['wartosc']; $this->CFG[$dane['klucz']] = $this->CONFIG[$dane['klucz']]; } } } $USTAWIENIA=new ustawienia(); $CS->USTAWIENIA=$USTAWIENIA; ?>DEFAULT_LANG; $_GET['lang']=strtoupper(str_replace('/','',$_GET['lang'])); $_SESSION['lang']=$_GET['lang']; if($_GET['lang']!=$this->DEFAULT_LANG) { $_GET['PREFIX']=$_SESSION['PREFIX']=strtolower($_GET['lang'].'/'); $_GET['PREFIX_VAR']=$_SESSION['PREFIX_VAR']=strtolower('&lang='.$_GET['lang']); } else { unset($_SESSION['PREFIX']); unset($_SESSION['PREFIX_VAR']); define('PREFIX',''); } define('LANG',$_SESSION['lang']); define('PREFIX',$_SESSION['PREFIX']); /* $sql=$CS->DB->query(' SELECT code FROM _jezyki WHERE active="1" ORDER BY pozycja '); while($dane=$CS->DB->fa($sql)) $CS->LANGS[] = strtoupper($dane['code']); if(!@in_array($_GET['lang'],$CS->LANGS) && $this->UNKNOWN_LANG_REDIRECT==true) $CS->URL->go('/'); if(!@in_array($_GET['lang'],$CS->LANGS)) return false; $sql=$CS->DB->query(' SELECT id, klucz, '.$_GET['lang'].' FROM _jezyki_teksty WHERE klucz!="-" ORDER BY id '); while($dane=$CS->DB->fetch_array($sql)) { $id=$dane['id']; $key=$dane['klucz']; $value=$dane[$_GET['lang']]; if(empty($value)) $value='{{brak_tekstu}}'; $value=str_replace(' ','\n',$value); $CS->LANG[$id] = $value; $CS->LANG[$key] = $value; }*/ } } $LANG_OBJ=new lang(); $CS->LANG_OBJ=$LANG_OBJ; ?>  SITE SYSTEM VERSION USER 
NAME:'.$CONF->SITE_NAME.'
DOMAIN:'.$_SERVER['HTTP_HOST'].'
DIRECTORY:   '.ROOT_PATH.'
CMS:'.$CONF->VERSION.'
PHP:'.$CONF->PHP['php_version'].'
MySQL:   '.$CONF->PHP['mysql_version'].'
LOGIN:   '.$_SESSION['backend']['login'].'
ID:   '.$_SESSION['backend']['user_id'].'
IP:'.$_SERVER['REMOTE_ADDR'].'
  '; ?> SkyFire

FATAL_ERROR: Call to a member function query() on a non-object


FILE: classes/_content.php -> line 19
URL:  http://www.test.hale-wynajem.pl/hala-testowa1.html

Reload »
001. <?php
002.
class content
003.
{
004.    var 
$SITE_MOD=1.0;
005. ...

014.        
$CS->SC = new structtree();
015.        
016.        
// budowa drzewa stron
017.        
if($CS->SC->count == 0)
018.        {
019.         $sql_q $CS->DB->query("select id, parent_id, title, active, menu_url, invisible,menu_blank,  menu, menu_redirect  from strony order by parent_id, pozycja, id ");
020.         while(
$dane $CS->DB->fetch_array($sql_q))
021.                
$CS->SC->additem($dane['id'],$dane['parent_id'],$dane);
022.         
$CS->SC->savefiledata();
023.        }
024.