æ±æ
(!defined('IN_TOA') || !defined('IN_ADMIN')) && exit('Access Denied!');
/*
[天çåæ³] (C)2008-2011 515158 Inc.
This is NOT a freeware, use is subject to license terms
URL:http://www.515158.com/
*/
get_config_keytable("file_type_Increase");
empty($do) && $do = 'list';
if ($do == 'list') {
include_once('template/file_type_add.php');
} elseif ($do == 'save') {
$savetype = getGP('savetype','P');
$title = getGP('title','P');
$father=getGP('father','P');
$keyuser=getGP('keyuser','P');
$file_type = array(
'title' => $title,
'father' => $father,
'keyuser' => $keyuser,
'date' => get_date('Y-m-d',PHP_TIME),
'uid' => $_USER->id
);
insert_db('file_type',$file_type);
$id=$db->insert_id();
$content=$title.get_inc_log(1).$father.get_inc_log(1).$keyuser;
$title='æ°å¢æ¡£æ¡ç±»å«';
get_oa_log_dbadd($id,$content,$title,20,$_USER->id);
goto_page('admin.php?ac=file_type&fileurl=file');
}
//读åé¨é¨
function GET_FILE_PUBLIC_LIST($fatherid=0,$selid=0,$layer=0)
{
$str="";
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."file_type where father='$fatherid' ORDER BY id Asc ");
if(count($query)>0){
for($i=0;$i
$str.="1";
}
while ($row = $db->fetch_array($query)) {
$selstr = $row['id'] == $selid ? 'selected="selected"' : '';
$htmlstr= '';
echo $htmlstr;
GET_FILE_PUBLIC_LIST($row['id'],$selid,$layer+1,$type);
}
}
return ;
}
?>
åå¤è®¨è®º(解å³æ¹æ¡)
çäºä¸ï¼ç±»ä¼¼è¿æget_user_add_helpã
ä»ç论ä¸çè¿ä¸ªphpæ件æ¯è¢«ä¸ä¸ªä¸»æ件è°ç¨ã
PSï¼å¦æè¿ä¸ªphpæ件åç¬å¯ä»¥è¿è¡çè¯ï¼é£ä¹å°±æ¯å¨ç¯å¢ä¸dllå®ä¹äºè¿äºç±»ã
çäºä¸ï¼ç±»ä¼¼è¿æget_user_add_helpã
ä»ç论ä¸çè¿ä¸ªphpæ件æ¯è¢«ä¸ä¸ªä¸»æ件è°ç¨ã
PSï¼å¦æè¿ä¸ªphpæ件åç¬å¯ä»¥è¿è¡çè¯ï¼é£ä¹å°±æ¯å¨ç¯å¢ä¸dllå®ä¹äºè¿äºç±»ã
get_user_add_helpæ¯å¦å¤ä¸ä¸ªPHPæ件åï¼å¨ç¯å¢ä¸dllå®ä¹äºè¿äºç±»æ¯ä»ä¹æè¯ï¼
get_oa_member_public æ¾ç¶ä¸æ¯å¨ä½ ç»åºç代ç ä¸å®ä¹ç
并ä¸ä½ ç»åºç代ç ä¸ä¹æ²¡æ includeï¼requireï¼å½æ°ç使ç¨
æ¾ç¶ä½ ç代ç æ¯è¢«å
¶ä»ç¨åºæ件 include æ§è¡ç
ä½ å¯å¨ get_oa_member_public(2,"keyuser","","+éæ©å®¡æ¹äººå",60,4) ä¹å print_r(get_included_files()); çä¸ä¸é½æåªäºæ件被å è½½
并ä¸å¨è¿äºæ件ä¸æ¥æ¾ function get_oa_member_public åæ ·
æç´¢ä¸ä¸æ´ä¸ªæ¡æ¶ä¸å°±ç¥éäº
上一篇: 分享25个*PHP模板引擎整理
下一篇: mysql密码修改_MySQL