function _addsection() { $array = array('section_name' => strip_tags(params::get('section_name')), 'section_desc' => params::get('section_desc')); db::table('catalog_sections'); db::smartInsert($array); $section_id = mysql_insert_id(); $dir = IMAGES_ROOT . 'sections/'; @mkdir(IMAGES_ROOT); @mkdir($dir); if (!empty($_FILES['section_photo']['name'])) { $file = $dir . $section_id . '.jpg'; copy($_FILES['section_photo']['tmp_name'], $file); images::src($file); images::thumb($file); images::square(78); } headers::action('catalog', 'main', 'sections'); }
function _addsection() { $array = array('section_name' => strip_tags(params::get('section_name')), 'section_year' => params::get('section_year'), 'section_view' => params::isCheck('section_view')); db::table('info_sections'); db::smartInsert($array); $section_id = mysql_insert_id(); headers::action('info', 'main', 'sections'); }
function _addGroup() { $array = ini::parse(SYS_ROOT . 'conf/admin/groups.ini'); $group_id = arrays::maxKey($array); $group_id++; self::addGroupForce($group_id); headers::action('system', 'users', 'groups'); }