programdel.php
资源名称:p2p_vod.rar [点击查看]
上传用户:liguizhu
上传日期:2015-11-01
资源大小:2422k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- <?php
- include_once 'functions.php';
- $md5 = $_REQUEST["program"];
- $listTable = getChannelTable();
- foreach ($listTable as $chmd5 => $charray){
- $size = count($charray);
- for($i=2; $i<$size; $i++){
- $pmd5=trim($charray[$i]);
- if (strcmp($md5, $pmd5)==0){
- print("此节目已被频道<b>".trim($charray[1])."</b>收录,无法删除。");
- print('<p align="center" ><a href="program.php">返回节目列表</a></p>');
- exit;
- }
- }
- }
- $filename = PROGRAM_DIR . "/" . $md5;
- if (!file_exists($filename)){
- print("此节目已不存在,删除命令无效。");
- print('<p align="center" ><a href="program.php">返回节目列表</a></p>');
- exit;
- }
- shelldel($filename);
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>节目管理 - 删除节目</title>
- <style type="text/css">
- <!--
- .style1 {
- font-size: 18px;
- font-weight: bold;
- }
- -->
- </style>
- </head>
- <body>
- <p align="center" class="style1">删除节目成功!</p>
- <p align="center" class="style1"><a href="program.php">返回节目列表</a></p>
- </body>
- </html>