1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50:
<?php
class PHPShopIndex extends PHPShopCore {
function __construct() {
$this->objBase = $GLOBALS['SysValue']['base']['table_name11'];
$this->debug = false;
$this->template = 'templates.index';
parent::__construct();
}
function index() {
global $PHPShopModules;
$true_url = array('/', '');
if (!in_array($this->PHPShopNav->objNav['url'], $true_url)) {
return $this->setError404();
}
$row = parent::getFullInfoItem(array('*'), array('category' => "=2000", 'enabled' => "='1'"));
$this->set('mainContent', Parser($row['content']));
$this->set('mainContentTitle', Parser($row['name']));
$PHPShopModules->setHookHandler(__CLASS__, __FUNCTION__, $this, $row);
}
}
?>