ver 3.35 fix some bugs

pull/120/head
warlee 2016-12-23 12:14:44 +08:00
parent c219c6be48
commit a9f148731f
36 changed files with 55 additions and 55 deletions

View File

@ -20,8 +20,8 @@ if(GLOBAL_DEBUG){
}else{ }else{
define('STATIC_JS','app'); //app define('STATIC_JS','app'); //app
define('STATIC_LESS','css');//css define('STATIC_LESS','css');//css
@ini_set("display_errors","off");//on off @ini_set("display_errors","on");//on off
@error_reporting(0); // 0 @error_reporting(E_ERROR|E_PARSE|E_WARNING);// 0
} }
header("Content-type: text/html; charset=utf-8"); header("Content-type: text/html; charset=utf-8");

File diff suppressed because one or more lines are too long

View File

@ -192,7 +192,6 @@ class share extends Controller{
} }
public function common_js(){ public function common_js(){
$out = ob_get_clean(); $out = ob_get_clean();
$config = $GLOBALS['config']['setting_default'];
$the_config = array( $the_config = array(
'lang' => LANGUAGE_TYPE, 'lang' => LANGUAGE_TYPE,
'is_root' => 0, 'is_root' => 0,
@ -201,13 +200,14 @@ class share extends Controller{
'app_host' => APPHOST, 'app_host' => APPHOST,
'static_path' => STATIC_PATH, 'static_path' => STATIC_PATH,
'version' => KOD_VERSION, '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(), 'upload_max' => file_upload_size(),
'json_data' => "", 'json_data' => "",
'share_page' => 'share' 'share_page' => 'share'
); );
$user_config = $GLOBALS['config']['setting_default'];
if(isset($this->in['user'])){ if(isset($this->in['user'])){
$member = system_member::load_data(); $member = system_member::load_data();
$user = $member->get($this->in['user']); $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

View File

@ -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