Hello friends! My upload does not load the images, help! I put the codes of the files, I tried to find the problem but not found.
index.php
index.php
Code:
<?php include("../web/config.php"); include("../web/core.php"); connectdb(); $site = $_GET["site"]; $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'")); $sitename = $sitename[0]; $uip = getip(); $action = $_GET["action"]; $sid = $_GET["sid"]; $page = $_GET["page"]; $who = $_GET["who"]; $uid = getuid_sid($sid); $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); If($site=="wap"){ header("Content-type: text/vnd.wap.wml"); header("Cache-Control: no-store, no-cache, must-revalidate"); print "<?xml version=\"1.0\"?>"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; }else{ header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1 header("Pragma: no-cache"); echo '<?xml version="1.0"?' . '>'; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; } if($site=="wap"){ echo "<wml>"; }else{ echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">"; } /* Author : GUMSLONE AND LAMAR */ if($site=="wap"){ echo "<card id=\"main\" title=\"$sitename Uploader™\">"; }else{ echo "<head>"; echo "<title>$sitename Uploader</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; echo "<body>"; } echo mobads(); echo "<p align=\"left\">"; echo "[b][u]$sitename File Share[/u][/b] "; //echo "Link To Download Files Eg: [url]http://www.dmpwap.net/uploaded/files/line.gif[/url] "; //pagination code $limit = 10; $query_count = "SELECT id, COUNT(*) FROM ibwf_uploads GROUP BY id"; $result_count = mysql_query($query_count); $totalrows = mysql_num_rows($result_count); if(empty($page)){ $page = 1; } $limitvalue = $page * $limit - ($limit); $query = "SELECT * FROM ibwf_uploads ORDER BY id DESC LIMIT $limitvalue, $limit"; $result = mysql_query($query) or die("Error: " . mysql_error()); if(mysql_num_rows($result) == 0){ echo("Nothing to Display! "); } $bgcolor = "#E0E0E0"; // light gray while($row = mysql_fetch_array($result)){ if ($bgcolor == "#E0E0E0"){ $bgcolor = "#FFFFFF"; }else{ $bgcolor = "#E0E0E0"; } $usr = getnick_uid($row[uid]); echo "<a href=\"./files/$row[filename]\">$row[filename]</a> ($row[filesize]) Uploaded On: $row[date] And Posted By <a href=\"web/inbox.php?action=sendpm&who=$row[uid]&sid=$sid\">$usr</a> "; } if($page != 1){ $pageprev = $page-1; echo("<a href=\"index.php?page=$pageprev\">PREV ".$limit."</a> "); }else{ echo("PREV ".$limit." "); } $numofpages = $totalrows / $limit; for($i = 1; $i <= $numofpages; $i++){ if($i == $page){ echo($i." "); }else{ echo("<a href=\"index.php?page=$i\">$i</a> "); } } if(($totalrows % $limit) != 0){ if($i == $page){ echo($i." "); }else{ echo("<a href=\"index.php?page=$i\">$i</a> "); } } if(($totalrows - ($limit * $page)) > 0){ $pagenext = $page+1; echo("<a href=\"index.php?page=$pagenext\">NEXT ".$limit."</a>"); }else{ echo("NEXT ".$limit); } mysql_free_result($result); echo " Total Files Uploaded: [b]$countfile[/b] "; echo "Page(s) [b]$page[/b] of [b]$numofpages[/b] "; echo "<a href=\"upload.php?sid=$sid&site=$site\">Upload Your Files Now!</a> "; echo "The Upload Page is an XHTML and may not work on All Phones "; echo ""; echo "</p>"; echo " "; if($site=="wap"){ echo " <a href=\"../wap/index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"; echo "</p>"; }else{ echo " <a href=\"../web/index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"; echo "</p>"; } if($site=="wap"){ echo "</card>"; echo "</wml>"; }else{ echo "</body>"; echo "</html>"; } ?>
Comment