льные Поля\'; echo \'
\'; echo $this->CI->load->module(\'cfcm/admin\')->form_from_category_group($id, $id, \'category\'); echo \'
\';', 'comments_read_com_tpl' => 'if (isset($_POST[\'comment_text\'])) { modules::run(\'comments/add\'); }', 'system_init_completed' => 'if (!defined(\'DS\')) { define(\'DS\', DIRECTORY_SEPARATOR); } // Full path to shop module dir with ending slash. define(\'SHOP_DIR\', PUBPATH.\'/application/modules/shop/\'); // Include Shop core. require_once(SHOP_DIR . \'classes/ShopCore.php\'); // Register shop autoloader. spl_autoload_unregister(array(\'ShopCore\',\'autoload\')); spl_autoload_register(array(\'ShopCore\',\'autoload\')); // Diable CSRF library form web money service $CI =& get_instance(); if ($CI->uri->segment(1)==\'shop\' && $CI->uri->segment(2)==\'cart\' && $CI->uri->segment(3)==\'view\' && $_GET[\'result\']==\'true\' && $_GET[\'pm\'] > 0) { define(\'ICMS_DISBALE_CSRF\',true); } // Support for robokassa if ($CI->uri->segment(1)==\'shop\' && $CI->uri->segment(2)==\'cart\' && $CI->uri->segment(3)==\'view\' && $_GET[\'getResult\']==\'true\') { define(\'ICMS_DISBALE_CSRF\',true); } if ($CI->uri->segment(1)==\'shop\' && $CI->uri->segment(2)==\'cart\' && $CI->uri->segment(3)==\'view\' && $_GET[\'succes\']==\'true\') { define(\'ICMS_DISBALE_CSRF\',true); } if ($CI->uri->segment(1)==\'shop\' && $CI->uri->segment(2)==\'cart\' && $CI->uri->segment(3)==\'view\' && $_GET[\'fail\']==\'true\') { define(\'ICMS_DISBALE_CSRF\',true); }', 'admin_tpl_desktop_head' => '// Register shop javascript files. echo \'\'."\n"; echo \'\'."\n"; echo \'\'."\n"; echo \'\'."\n"; echo \'\'."\n\n";', 'core_set_tpl_data' => 'ShopCore::initEnviroment();', 'auth_show_success_message' => '$username = $val ? $val->set_value(\'username\') : $userInfo[\'username\']; if ($query = ShopCore::$ci->users->get_user_by_username($username) AND $query->num_rows() == 1) { $row = $query->row(); $profile = SUserProfileQuery::create()->filterByUserId($row->id)->findOne(); if ($profile === null && $val) { // Create profile $profile = new SUserProfile; $profile->setUserId($row->id); $profile->setUserEmail($row->email); $profile->setDateCreated(strtotime($row->created)); $profile->save(); } else if ($profile === null && $userInfo) { // Create profile $profile = new SUserProfile; $profile->setUserId($row->id); $profile->setName($_POST[\'userInfo\'][\'fullName\']); $profile->setAddress($_POST[\'userInfo\'][\'deliverTo\']); $profile->setPhone($_POST[\'userInfo\'][\'phone\']); $profile->setUserEmail($row->email); $profile->setDateCreated(strtotime($row->created)); $profile->save(); } }', 'users_delete' => '$model = SUserProfileQuery::create()->filterByUserId($value)->findOne(); if ($model != null) $model->delete();', 'users_user_created' => 'if ($query = ShopCore::$ci->users->get_user_by_username($user) AND $query->num_rows() == 1) { $row = $query->row(); $profile = SUserProfileQuery::create()->filterByUserId($row->id)->findOne(); if ($profile === null) { // Create profile $profile = new SUserProfile; $profile->setUserId($row->id); $profile->setUserEmail($row->email); $profile->setDateCreated(strtotime($row->created)); $profile->save(); } }', 'core_init' => '', ); if (isset($cms_hooks[$hook_id])) { return $cms_hooks[$hook_id]; } else { return FALSE; } }
Fatal error: Uncaught Error: Class 'ShopController' not found in /var/www/voltar/application/modules/shop/shop.php:11 Stack trace: #0 /var/www/voltar/application/third_party/MX/Modules.php(158): include_once() #1 /var/www/voltar/application/third_party/MX/Modules.php(114): Modules::load_file('shop', 'application/con...') #2 /var/www/voltar/application/third_party/MX/Loader.php(225): Modules::load('shop') #3 /var/www/voltar/application/modules/core/core.php(1011): MX_Loader->module('shop') #4 /var/www/voltar/application/modules/core/core.php(297): Core->is_module(1) #5 /var/www/voltar/system/core/CodeIgniter.php(325): Core->index() #6 /var/www/voltar/index.php(253): require_once('/var/www/voltar...') #7 {main} thrown in /var/www/voltar/application/modules/shop/shop.php on line 11