: </td><td><input name=priority
type=text size=5 value=1></td></tr>
<tr><td colspan=2 align=right><input type="submit" VALUE="确定
"></td></tr>
</table>
</FORM>
<?
} else {
if (file_exists("/home/htdocs/ad/".$banner_name)) {
CommonHeader("档案 ".$banner_name." 已存在");
echo "<p><br><br>广告档案已经存在
\n<p><br><br></body></html>";
exit;
};
copy($banner,"/home1/biglobe3/ad/".$banner_name);
putenv("ORACLE_SID=WWW");
putenv("NLS_LANG=american_taiwan.zht16big5");
putenv("ORACLE_HOME=/home/oracle/product/7.3.2");
putenv("LD_LIBRARY_PATH=/home/oracle/product/7.3.2/lib");
putenv("ORA_NLS=/home/oracle/product/7.3.2/ocommon/nls/admin/data");
putenv("ORA_NLS32=/home/oracle/product/7.3.2/ocommon/nls/admin/data");
$handle=ora_logon("user38@WWW","iam3849") or die;
$cursor=ora_open($handle);
ora_commitoff($handle);
$query="insert into ad(url, banner, alt, descript, priority)
values('$url', '$banner_name', '$alt', '$descript', $priority)";
ora_parse($cursor, $query) or die;
ora_exec($cursor);
ora_close($cursor);
ora_logoff($handle);
echo "<title>广告新增完成</title>";
echo "</head>";
echo "<body>";
echo "<a href="http://www.webjx.com/htmldata/2005-02-25/.$url."><img src=/ad/".$banner_name."
alt=\"".$alt."\" border=0></a><p>";
echo "<ul type=disc>";
echo "<li>广告网址: ".$url;
echo "<li>辅助字串: ".$alt;
type=text size=5 value=1></td></tr>
<tr><td colspan=2 align=right><input type="submit" VALUE="确定
"></td></tr>
</table>
</FORM>
<?
} else {
if (file_exists("/home/htdocs/ad/".$banner_name)) {
CommonHeader("档案 ".$banner_name." 已存在");
echo "<p><br><br>广告档案已经存在
\n<p><br><br></body></html>";
exit;
};
copy($banner,"/home1/biglobe3/ad/".$banner_name);
putenv("ORACLE_SID=WWW");
putenv("NLS_LANG=american_taiwan.zht16big5");
putenv("ORACLE_HOME=/home/oracle/product/7.3.2");
putenv("LD_LIBRARY_PATH=/home/oracle/product/7.3.2/lib");
putenv("ORA_NLS=/home/oracle/product/7.3.2/ocommon/nls/admin/data");
putenv("ORA_NLS32=/home/oracle/product/7.3.2/ocommon/nls/admin/data");
$handle=ora_logon("user38@WWW","iam3849") or die;
$cursor=ora_open($handle);
ora_commitoff($handle);
$query="insert into ad(url, banner, alt, descript, priority)
values('$url', '$banner_name', '$alt', '$descript', $priority)";
ora_parse($cursor, $query) or die;
ora_exec($cursor);
ora_close($cursor);
ora_logoff($handle);
echo "<title>广告新增完成</title>";
echo "</head>";
echo "<body>";
echo "<a href="http://www.webjx.com/htmldata/2005-02-25/.$url."><img src=/ad/".$banner_name."
alt=\"".$alt."\" border=0></a><p>";
echo "<ul type=disc>";
echo "<li>广告网址: ".$url;
echo "<li>辅助字串: ".$alt;
| 对此文章发表了评论 |
