First preview

gautierduthoit / 2015-12-31 11:44:41   

Hi,
What can I do? Thanks for your answer :)
When i enter my domain name in Safari, this message appears:

check_cached($uri); // let's check for post values to turn off caching if ($CACHE->cached == true) { $CACHE->show_cached(); } else { // load the core $OBJ =& load_class('core', true, 'lib'); // need to load up hooks $OBJ->assign_core_front(); // set defaults $OBJ->vars->default = $default; $OBJ->hook->load_hooks_front(); // check for a preloading hook if ($OBJ->hook->registered_hook('site_protect')) $OBJ->hook->do_action('site_protect'); // make a hook to change defaults? // media checks $uri = media_check($uri); // 'home' feature // if $uri == '/' switch query to search via 'home' if ($uri == '/') { $q['qry'] = "AND home = '1' "; $q['flag'] = true; } else { $q['qry'] = "AND url = " . $OBJ->db->escape($uri) ; $q['flag'] = false; } // page query $OBJ->vars->exhibit = $OBJ->db->fetchRecord("SELECT * FROM ".PX."objects, ".PX."objects_prefs, ".PX."sections INNER JOIN ".PX."settings ON adm_id = '1' WHERE status = '1' $q[qry] AND section_id = secid AND object = obj_ref_type"); // second try - enforces / as default if ((!$OBJ->vars->exhibit) && ($q['flag'] == true)) { $OBJ->vars->exhibit = $OBJ->db->fetchRecord("SELECT * FROM ".PX."objects, ".PX."objects_prefs, ".PX."sections INNER JOIN ".PX."settings ON adm_id = '1' WHERE status = '1' AND url = " . $OBJ->db->escape($uri) . " AND section_id = secid AND object = obj_ref_type"); } if (!$OBJ->vars->exhibit) { // try again with site root - the 'home' page $OBJ->vars->exhibit = $OBJ->db->fetchRecord("SELECT * FROM ".PX."objects, ".PX."objects_prefs, ".PX."sections INNER JOIN ".PX."settings ON adm_id = '1' WHERE home = '1' AND status = '1' AND section_id = secid AND object = obj_ref_type"); // we don't cache these $CACHE->defaults['caching'] = false; header("HTTP/1.1 404 Not Found"); // we need a formal error page if (!$OBJ->vars->exhibit) { // we don't search engines indexing this front_error('File Not Found', 404); exit; } } // we need to let the system know whether it's front or back end... $OBJ->vars->exhibit['cms'] = false; // create the abstracts for exhibits or even images $OBJ->abstracts->front_abstracts(); // autoload 'plugins' folder include_once DIRNAME . '/ndxzsite/plugin/index.php'; // additional variables // perhaps we should port these differently? $OBJ->baseurl = BASEURL; $OBJ->vars->exhibit['baseurl'] = BASEURL; $OBJ->vars->exhibit['basename'] = BASENAME; $OBJ->vars->exhibit['basefiles'] = BASEFILES; $OBJ->vars->exhibit['gimgs'] = GIMGS; $OBJ->vars->exhibit['ajax'] = false; $OBJ->vars->exhibit['cms'] = false; // we want to lose all of this $GLOBALS['rs'] = $OBJ->vars->exhibit; // setup front end helper class $OBJ->lib_class('page', true, 'lib'); $OBJ->page->loadExhibit(); $OBJ->page->init_page(); if ($OBJ->hook->registered_hook('pre_load')) $OBJ->hook->do_action('pre_load'); // is it special media? $OBJ->vars->exhibit['template'] = ($OBJ->template_override == true) ? 'media.php' : $OBJ->vars->exhibit['template']; $OBJ->parse_class($OBJ->vars->default['parse']); $OBJ->parse->vars = $OBJ->vars->exhibit; // this allows us some control over outputs... // like adding extra exhibits or variables via user input $OBJ->parse->pre_parse($OBJ->vars->exhibit['content']); $template = (file_exists(DIRNAME . '/ndxzsite/' . $OBJ->vars->exhibit['obj_theme'] . '/' . $OBJ->vars->exhibit['template'])) ? $OBJ->vars->exhibit['template'] : 'index.php'; $filename = DIRNAME . '/ndxzsite/' . $OBJ->vars->exhibit['obj_theme'] . '/' . $template; $fp = @fopen($filename, 'r'); $contents = fread($fp, filesize($filename)); fclose($fp); $OBJ->parse->code = $contents; $output = $OBJ->parse->parsing(); header('Content-Type: text/html; charset=utf-8'); echo $output; // caching - if enabled and possible // we want media pages to cache as well $uri = ($OBJ->template_override == true) ? $OBJ->temp_uri : $uri; // no cache if a password page if (($OBJ->page->cached == true)) $CACHE->makeCache($uri, $output); } exit;

This thread has been closed, thank you.