ver 3.35 fix some bugs
parent
c219c6be48
commit
a9f148731f
|
@ -20,8 +20,8 @@ if(GLOBAL_DEBUG){
|
|||
}else{
|
||||
define('STATIC_JS','app'); //app
|
||||
define('STATIC_LESS','css');//css
|
||||
@ini_set("display_errors","off");//on off
|
||||
@error_reporting(0); // 0
|
||||
@ini_set("display_errors","on");//on off
|
||||
@error_reporting(E_ERROR|E_PARSE|E_WARNING);// 0
|
||||
}
|
||||
|
||||
header("Content-type: text/html; charset=utf-8");
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -192,7 +192,6 @@ class share extends Controller{
|
|||
}
|
||||
public function common_js(){
|
||||
$out = ob_get_clean();
|
||||
$config = $GLOBALS['config']['setting_default'];
|
||||
$the_config = array(
|
||||
'lang' => LANGUAGE_TYPE,
|
||||
'is_root' => 0,
|
||||
|
@ -201,13 +200,14 @@ class share extends Controller{
|
|||
'app_host' => APPHOST,
|
||||
'static_path' => STATIC_PATH,
|
||||
'version' => KOD_VERSION,
|
||||
'version_desc' => $this->config['settings']['version_desc'],
|
||||
'version_desc' => isset($this->config['settings']['version_desc'])?$this->config['settings']['version_desc']:"",
|
||||
|
||||
'upload_max' => file_upload_size(),
|
||||
'json_data' => "",
|
||||
'share_page' => 'share'
|
||||
);
|
||||
|
||||
$user_config = $GLOBALS['config']['setting_default'];
|
||||
if(isset($this->in['user'])){
|
||||
$member = system_member::load_data();
|
||||
$user = $member->get($this->in['user']);
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
<?php class system_role extends Controller{public static $static_sql=null;private $sql;function __construct(){parent::__construct();$this->sql=self::load_data();<EFBFBD>Ù³Ñììñ§Àë¡ÑÆ¥§¶ÂßÚ¾üιÎÒÝ<EFBFBD>ëí;}public static function load_data(){if(is_null(self::$static_sql)){self::$static_sql=system_rol_data();}return self::$static_sql;}public static function get_info($£){$Ý׈=self::load_data();<EFBFBD>ò†å”׬¹þãüÞ¾¼ÜŽö«àÔ»ÌþïùœÇ‚ç<EFBFBD>ûÛ“âïë<EFBFBD>ªêò§Ê²ä§ÀÛÓ¡°<EFBFBD>íôÎÞîë;return $Ý׈->get($£);}public function get(){show_json($this->sql->get());<EFBFBD>í°ÈÐ ´àË Óóê‡Ø“Ç´çéå÷ØÚƷɳ߻ˆ;}public function add(){$ª=$this->_init_data();$ª['role_id']=$this->sql->get_max_id().'';<EFBFBD>’ܦ²±šž¸ó±<EFBFBD>¨™ê<EFBFBD>‘ÄéØû´<EFBFBD>Üð–ðœÏϘªáõЕ¨ë³áßäã‰þΙ‘”ƒê‘¸÷íªŽßÆޯ߉‘ÖÚ¦€ÇÚá;if($this->sql->set($ª['role_id'],$ª)){show_json($this->L['success'],!0,$ª['role_id']);}show_json($this->L['error'],!1);}public function edit(){$¿Å=$this->_init_data();$•ËÐ=$this->in['role_id'];if($this->sql->set($•ËÐ,$¿Å)){show_json($this->L['success'],!0,$•ËÐ);}show_json($this->L['error'],!1);}public function del(){if(!isset($this->in['role_id']))show_json($this->L["data_not_full"],!1);if(strlen($this->in['role_id'])<=0x001)show_json($this->L['default_user_can_not_do'],!1);system_member::role_remove_user_update($this->in['role_id']);<EFBFBD>ˆ´©³Â‰ú¡¸Û«Ê²†ñ³ÎÌ•ö<EFBFBD>Û©Ìñ;if($this->sql->remove($this->in['role_id'])){show_json($this->L['success']);}show_json($this->L['error'],!1);}private function _init_data(){if(strlen($this->in['name'])<0x001)show_json($this->L["groupname_can_not_null"],!1);$<EFBFBD>œÄÙ×=array('name'=>rawurldecode($this->in['name']));<EFBFBD>‚;$<24>œÄÙ×['ext_not_allow']=$this->in['ext_not_allow'];<EFBFBD>óÄØŸ<EFBFBD>Œ¦‚¿ôÎÕìÛ²–¨¤;foreach($this->config['role_setting'] as $Æ=>$Ð ™){foreach($Ð ™ as $¯›){$<24>§=$Æ.':'.$¯›;if(isset($this->in[$<EFBFBD>§])){$<24>œÄÙ×[$<24>§]=0x001;}else{$<24>œÄÙ×[$<24>§]=0;}}}return $<24>œÄÙ×;<EFBFBD>•û…¼ýı͛ž©ÍµÑñÁ™´“ºÎ³ééÕë’ôáþíöûò³ù¸åÇÓ…ñ¢ºÄ•üÝÉ‘˜˜Äƒƒšî•<EFBFBD>ЕýÈ‘ðüŒªâÓþçÆ¡£‹¶¡è<EFBFBD>²‚™;}}
|
||||
<?php class system_role extends Controller{public static $static_sql=null;private $sql;function __construct(){parent::__construct();$this->sql=self::load_data();<EFBFBD>¹ú³êŒûø´<EFBFBD>ÉüË›;}public static function load_data(){if(is_null(self::$static_sql)){self::$static_sql=system_rol_data();}return self::$static_sql;}public static function get_info($ζþ){$àÂ=self::load_data();return $àÂ->get($ζþ);<EFBFBD>æ©ëþ<EFBFBD>ä<EFBFBD>×àÃÂí;}public function get(){show_json($this->sql->get());<EFBFBD>φŸœ¢çêØ燹ª¼<EFBFBD>¡;}public function add(){$…Ë·=$this->_init_data();$…Ë·['role_id']=$this->sql->get_max_id().'';<EFBFBD>ÁýØ…ë;if($this->sql->set($…Ë·['role_id'],$…Ë·)){show_json($this->L['success'],!0,$…Ë·['role_id']);}show_json($this->L['error'],!1);}public function edit(){$Á<EFBFBD>=$this->_init_data();<EFBFBD>‡ê—òÀùý«¶œÌƒ¡™º¥ƒ×ºÅÖ”;$®Œ=$this->in['role_id'];<EFBFBD><EFBFBD>¡¿™•„™<EFBFBD>ƒÄÆŸ’ÉÁ«…ç¯;if($this->sql->set($®Œ,$Á<>)){show_json($this->L['success'],!0,$®Œ);}show_json($this->L['error'],!1);}public function del(){if(!isset($this->in['role_id']))show_json($this->L["data_not_full"],!1);if(strlen($this->in['role_id'])<=0x001)show_json($this->L['default_user_can_not_do'],!1);system_member::role_remove_user_update($this->in['role_id']);<EFBFBD>³·¿öæÌÈ<EFBFBD>¢Ê£âä¸çýÈêÃ<EFBFBD>‹ÖÙ̃޴²¼×§ð<EFBFBD>;if($this->sql->remove($this->in['role_id'])){show_json($this->L['success']);}show_json($this->L['error'],!1);}private function _init_data(){if(strlen($this->in['name'])<0x001)show_json($this->L["groupname_can_not_null"],!1);$çöµ±ø=array('name'=>rawurldecode($this->in['name']));<EFBFBD>»áÕ£àž<EFBFBD>¤›ûˆçþç<EFBFBD>±¤ôÙ–…Á;$çöµ±ø['ext_not_allow']=$this->in['ext_not_allow'];<EFBFBD>°õÏ®“Œ<EFBFBD>è°ð‡¿–µÚ’¾Ã’¦àÃËÖ<EFBFBD>áÛßàÙגЧÀä´ÐÎäÂÕ¥ÙŒ<EFBFBD>ëÊÄþñ¦Ã½üàŸÙÁ€³™’…ÀÓéõ¤¸Úç<EFBFBD>€Á›<EFBFBD>®æÆÙìð—éҷÔ¸÷;foreach($this->config['role_setting'] as $üîŸ=>$åÄŸÀ¬){foreach($åÄŸÀ¬ as $Áî){$ž²=$üîŸ.':'.$Áî;if(isset($this->in[$ž²])){$çöµ±ø[$ž²]=0x001;}else{$çöµ±ø[$ž²]=0;}}}return $çöµ±ø;<EFBFBD>½¤à‘Û¥¦”<EFBFBD>ÔßšÄþ‚ªÄ¢;}}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue