|
本帖最后由 huochai 于 2012-11-22 15:25 编辑
[ol]130){ //获取的授权码正确 $data=array('val'=>$authcode); $duoduo->update('webset',$data,'var="authorize"'); $duoduo->webset(1); return $authcode; } } $webset=dd_get_cache('webset'); return $webset['authcode']; //服务器错误获取不到授权码时,返回数据库纪录的授权信息}$domain_url=get_domain();$duoduo_auth_url=array('http://auth.duoduo123.com','http://auth.cnduo.com');if($domain_url!='localhost'){ if(isset($_GET['duoduoauthget']) && $_GET['duoduoauthget']==1){ get_auth($duoduo_auth_url,$duoduo); jump(u('webset','center'),'授权获取成功!'); } $get_auth_url=u(MOD,ACT,array('duoduoauthget'=>'1')); $auth_arr=authcode($webset['authorize'],'DECODE',md5('luzhouyue'.$domain_url.'luzhouyue')); if(empty($auth_arr)){ echo '授权码验证失败,请重新获取。[url=]获取授权码[/url]。(失败原因:您擅自修改了数据库授权字段,或者您当前的网址不是您的授权网址!)'; dd_exit(); } $auth_arr=unserialize($auth_arr); if($auth_arr['ckdate']$auth_arr['etime']){ echo '您的免费体验已到期('.$auth_arr['day'].'天),请购买官方正版授权后获授取权码。[url=]购买地址[/url] [url=]获取授权码[/url]'; dd_exit(); } } if(time()>$auth_arr['etime']){ $limit_mod=dd_get($duoduo_auth_url[0].'/limit_mod.php'); if($limit_mod!=''){ $limit_mod=explode(',',$limit_mod); if($auth_arr['type']=='pay' && in_array(MOD,$limit_mod)){ echo '您的授权已到期('.$auth_arr['day'].'天),请续费后重新获取授权码。[url=]购买地址[/url] [url=]获取授权码[/url]'; dd_exit(); } } }}$duoduo_type=dd_get_cache('type');if(array_key_exists(MOD,$duoduo_type)){ $this_type=$duoduo_type[MOD];}/*$lock_mod_act=array('tixian'=>'addedi'); //执行锁定模块foreach($lock_mod_act as $lock_mod=>$lock_act){ if($lock_mod==MOD && $lock_act==ACT){ include(DDROOT.'/comm/phpLock.class.php'); //引入脚本文件锁定代码 $lock = new phpLock($mod.'_'.$act,DDROOT.'/data/lock/'); }}*//*公共数据*/$top_arr=array(0=>'否',1=>'是');$menu_arr['index'][]=array('mod'=>'index','act'=>'left');$menu_arr['index'][]=array('mod'=>'index','act'=>'top');$menu_arr['index'][]=array('mod'=>'index','act'=>'index');dd_session_start();if ($mod != 'login') { $ddadmin = $_SESSION['ddadmin']; if ($ddadmin['name'] == '') { jump(u('login', 'login')); } else{ $menu_id=$duoduo->select('menu as a,menu_access as b','a.id','a.`mod`="webset" and a.`act`="center" and a.id=b.menu_id and b.role_id="'.$ddadmin['role_id'].'"'); if(!$menu_id){ $menu=$duoduo->select('menu as a,menu_access as b','a.`mod`,a.`act`','a.id=b.menu_id and b.role_id="'.$ddadmin['role_id'].'" and hide=0 and a.act"" and a.mod"" order by sort asc'); $_GET['go_mod']=$menu['mod']; $_GET['go_act']=$menu['act']; } else{ $_GET['go_mod']='webset'; $_GET['go_act']='center'; } $url_ok = 1; } $sql = "select a.id,a.node,a.mod,a.act,a.title,a.parent_id,a.hide from " . BIAOTOU . "menu as a," . BIAOTOU . "menu_access as b where a.id=b.menu_id and b.role_id='" . $ddadmin['role_id'] . "' and a.mod'fun' order by a.listorder desc,a.sort desc,a.id asc"; $query = $duoduo->query($sql); while ($row = $duoduo->fetch_array($query)) { if ($row['parent_id'] == 0) { $menu_arr[$row['node']] = array(); $parent_menu[$row['node']]['title']=$row['title']; $parent_menu[$row['node']]['hide']=$row['hide']; } else { $menu_arr[$row['node']][] = $row; } } $url_ok = 0; foreach ($menu_arr as $key => $row) { foreach ($row as $arr) { //print_r($arr); if (MOD==$arr['mod'] && ACT == $arr['act']) { $url_ok = 1; } } } if(MOD=='fun') $url_ok = 1; if ($url_ok != 1) { PutInfo('你没有权限'); dd_exit(); }}$mod_name=$mod.'/'.$act;if(isset($_POST['sub']) && $_POST['sub']!=''){ if(MOD!='tradelist' || ACT!='import'){ dd_addslashes($_POST); } if(ACT=='set'){ $duoduo->admin_log('set'); } elseif(ACT=='addedi'){ if($_POST['id']>0){ $duoduo->admin_log('update'); } else{ $duoduo->admin_log('insert'); } }}elseif(ACT=='del'){ $duoduo->admin_log('delete');}include(ADMINROOT.'/mod/public/'.'admin.act.php'); //公用共享文件if(strpos(MOD,'_type') && MOD!='tuan_type'){ //团购分类不采用集成分类 $mod_name='type/'.ACT; $a=explode('_',MOD); $a_c=count($a)-1; $mod_tag=''; for($i=0;$iclose();unset($duoduo);unset($webset);echo('
[img][/img]
');?>[/ol]复制代码加了个统计代码 就算破解好了?日!
哥不会告诉 哥都不惜看你的视频 哥php神盾的解密软件都写好了 你太不低调了! |
|