原帖由 魔焰男孩 于 2006-8-9 08:55 AM 发表
文件没有上传完整把
已重傳且合對...檔案大小一樣
還有....
al8也有類似問題~~
http://www.alan888.com/Discuz/viewthread.php?tid=64241&extra=page%3D2&page=1
另附我上傳的程式碼~~adset.inc.php
- <?php
- /*
- [DISCUZ!] work/work.inc.php - The ad manager file of this program
- Version: 1.0.0
- Author: mfboy
- Copyright: For author
- Last Modified: 2006-2-8
- */
- if(!defined('IN_DISCUZ') || !isset($PHP_SELF) || !preg_match("/[\/\\\\]admincp\.php$/", $PHP_SELF)) {
- exit('Access Denied');
- }
- cpheader();
- $do = trim(@$_GET['do']) ? trim(@$_GET['do']) : '';
- if($do == 'del') {
- $id = intval(@$_GET['id']);
- $db->query("DELETE FROM {$tablepre}clickad WHERE id='{$id}'");
- cpmsg("指定信息刪除成功", "admincp.php?action=plugins&identifier=work&mod=adset");
- } else if($do == 'add') {
- $imgurl = trim($imgurl);
- $adurl = trim($adurl);
- if(((strlen($imgurl) < 1) || (strlen($imgurl) > 255) || ((strlen($adurl) < 1) || (strlen($adurl) > 255)))) cpmsg("您輸入的信息不合法或不完整,請返回重新輸入。");
- $db->query("INSERT {$tablepre}clickad VALUES(0, '{$imgurl}', '{$adurl}');");
- cpmsg("信息添加成功", "admincp.php?action=plugins&identifier=work&mod=adset");
- } else if($do == ''){
- ?>
- <table cellspacing="<?=INNERBORDERWIDTH?>" cellpadding="<?=TABLESPACE?>" width="95%" align="center" class="tableborder">
- <tr class="header"><td><?=$lang['tips']?></td></tr>
- <tr bgcolor="<?=ALTBG1?>"><td>
- <br><li>您可以在這裡編輯、刪除、添加廣告連接</li><br><br>
- </td></tr></table><br>
- <table cellspacing="<?=INNERBORDERWIDTH?>" cellpadding="<?=TABLESPACE?>" width="95%" align="center" class="tableborder">
- <tr class="header"><td colspan="4">廣告連接列表</td></tr>
- <tr class="category" align="center">
- <td width="10%">刪除</td>
- <td width="10%">ID</td>
- <td width="35%">圖像地址</td>
- <td width="45%">廣告地址</td>
- </tr>
- <?php
- $query = $db->query("SELECT * FROM {$tablepre}clickad");
- while($list = $db->fetch_array($query)) {
- ?>
- <tr class="category" align="center">
- <td class="altbg1" width="10%"><a href="admincp.php?action=plugins&identifier=work&mod=adset&do=del&id=<?=$list['id']?>">刪除</a></td>
- <td class="altbg2" width="10%"><?=$list['id']?></td>
- <td class="altbg1" width="35%"><a href="<?=$list['imgurl']?>" title="<?=$list['imgurl']?>" target="_blank"><?=cutstr($list['imgurl'], 40)?></a></td>
- <td class="altbg2" width="45%"><a href="<?=$list['adurl']?>" title="<?=$list['adurl']?>" target="_blank"><?=cutstr($list['adurl'], 40)?></a></td>
- </tr>
- <?php
- }
- ?>
- <tr class="altbg2" align="left">
- <form method="post" action="admincp.php?action=plugins&identifier=work&mod=adset&do=add">
- <td colspan="4"><b>添加: </b> 圖像地址: <input type="text" name="imgurl" size="25" maxlength="255">
- 廣告地址: <input type="text" name="adurl" size="25" maxlength="255">
- <input type="submit" value="添加"></td></form>
- </table>
- <?php
- }
- ?>
复制代码 |