⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reload.php

📁 是个关于网格编程的程序
💻 PHP
字号:
<?php
//*****************************************
//       id: reload
//       EasyTalk V3.0 2008.5.6 20:50
//       by 仙踪云影
//*****************************************

define('is_admin_path', 'yes');
require_once '../common.php';
$smarty->template_dir = "templates";     
$smarty->compile_dir = "templates_c"; 
function removeDir( $dirName )
 {
  if ( $handle = opendir( "$dirName" ) ) {
   while ( false !== ( $item = readdir( $handle ) ) ) {
     if ( $item != "." && $item != ".." ) {
       if ( is_dir( "$dirName/$item" ) ) {
         removeDir( "$dirName/$item" );
       } else {
         @unlink( "$dirName/$item" );
       }
     }
   }
   return 1;
   closedir( $handle );
  }
} 
if ($admin_login !="yes" || $isadmin!=1)
header("Location: admin_login.php");
$t1=removeDir("../cache");
$t2=removeDir("../templates_c");
$t3=removeDir("templates_c");
if ($t1==1 || $t2==1 || $t3==1)
$smarty->assign("temp",1);
$smarty->display("reload.htm"); 
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -