求教

php中文网
发布: 2016-06-23 13:06:03
原创
1320人浏览过

附上两段代码file_type_add.php与mod_file_type_add.php,百思不得其解:get_oa_member_public(2,"keyuser","","+选择审批人员",60,4)这个函数从哪里来的,又调用哪里的?
nbsp;html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">







<script></script>
office 515158 2011 oa办公系统
 





 
 

 


<script> <br />function checkform() <br />{ <br /> if(document.save.title.value=="") <br /> { alert("栏目名称不能为空!"); <br /> document.save.title.focus(); <br /> return (false); <br /> } <br /> if(document.save.keyuser.value=="") <br /> { alert("档案审批人员不能为空!"); <br /> document.save.keyuser.focus(); <br /> return (false); <br /> } <br /> return true; <br />} <br />function sendform() <br />{ <br /> if(checkform()) <br /> document.save.submit(); <br />} <br /></script>



   
      
      
      
   
新建档案类别

 
    
      
      
    
   
      
      
    
    
      
      
    


 
    
      
    
  
 栏目名称: get_user_add_help() ?>
  
       
 档案审批人员: get_user_add_help() ?>
  get_oa_member_public(2,"keyuser","","+选择审批人员",60,4)
  ?>
       
 选择上级栏目:

      


 
        
      




 
 



(!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 ;

}

?>

Gatekeep
Gatekeep

Gatekeep AI是一个专注于将文本转化为教学视频的智能教学工具,主要用于数学和物理等学科的教育。

Gatekeep 62
查看详情 Gatekeep


回复讨论(解决方案)

看了下,类似还有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 字样

搜索一下整个框架不就知道了

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号