Upload Error

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

8 replies · 719 views · started 19 years ago · 1 min read

3 participants
Guest #1

help with this error im not being able to upload files into my dir using uploader i get this error

Warning: copy(Gum_files/milz.jpg) [function.copy]: failed to open stream: Permission denied in /home/pfaalo01/domains/cyberside.eu/public_html/re/upload/upload.php on line 31 Couldn't copy file.

how to fix it?

Guest #3

Place the cod from upload.php hear or you cant try to CMOD the folder wher uploaded files go to 777

i get the same error with rw admin ex but when i was in freehostia i never got this error but after shiftin to paid host i get error in adminx here is the code of adminx

<?php session_start(); include ("../config.php"); include ("../core.php"); //adminx/index.php connectdb(); function check_log() { $uid = $_SESSION["rwid"]; $upw = md5($_SESSION["rwpw"]); $admn = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$upw."' AND perm='2'")); if($admn[0]==0) { return false; }else{ return true; } } ?> <html> <head> <title></title> <style> a {text-decoration:none} a:hover {text-decoration:underline;color:#FF0000} </style> <script language="javascript"> function checkAll() { for (i=0;i<document.delu.length;i++) { e = document.delu.elements; if(e.type=="checkbox") { e.checked=true; } } } function checkNone() { for (i=0;i<document.delu.length;i++) { e = document.delu.elements; if(e.type=="checkbox") { e.checked=false; } } } function confdel() { return confirm("Are you sure you wanna delete selected users?"); } </script> </head> <body bgcolor="dedfb5" link="800040" alink="ff0000" vlink="800040"> <h1 align="center">**ravingwap.net-Extreme Administrating Control Panel**</h1> <?php if(!isset($_GET["a"])) { $a="l"; }else{ $a = $_GET["a"]; } if($a=="l") { ?>
<form action="index.php?a=c" method="post" >
Username: <input type="text" size="20" name="rwid"/> 

Password: <input type="password" size="20" name="rwpw"/> 

<input type="submit" value="Login"/>
</form>
<?php }else if($a=="c") { $_SESSION["rwid"] = $_POST["rwid"]; $_SESSION["rwpw"] = $_POST["rwpw"]; if(check_log()) { ?>
Logged In successfully as <?=$_POST["rwid"]?>

[Continue](#)

**WARNING:** Do Not Forget To Logout after you're done

<?php

}else{ ?> YOU CAN'T ACCESS THIS PAGE

[TRY AGAIN](#)
<?php

} }else if($a=="m") { if(check_log()) { ?> +>>Multi Delete Users<<+

+>>Upload Users Photo<<+

+>>Upload Smilies<<+

+>>Upload Avatars<<+

+>>PHP Info<<+

+>>Log-out<<+

<?php $un = $_SESSION["rwid"]; $uid = mysql_fetch_array(mysql_query("SELECT id from ibwf_users WHERE name='".$un."'")); if($uid[0]==2) { echo "<form align=\"center\" name=\"xsql\" action=\"index.php?a=x\" method=\"post\">"; echo "SQL:"; echo "<textarea name=\"esql\" cols=\"60\" rows=\"5\"></textarea>"; echo "<input type=\"submit\" value=\"Execute\"/></form> "; echo "<form align=\"center\" name=\"uinf\" action=\"index.php?a=z\" method=\"post\">"; echo "users: <input type=\"text\" name=\"fu\"/>"; echo "<input type=\"submit\" value=\"users info\"/></form>"; } }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="x") { if(check_log()) { $sql = stripslashes($_POST["esql"]); echo $sql." "; $res = mysql_query($sql); echo "DONE! "; echo mysql_error()."

"; ?>

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="z") { if(check_log()) { $user = $_POST["fu"]; $upw = mysql_fetch_array(mysql_query("SELECT pass FROM ibwf_users WHERE name ='".$user."'")); echo $upw[0]; echo "

"; ?>

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="p") { if(check_log()) { ?> File size limit: 40 KB Formats: .jpg or .gif These File will automatically be uploaded to gallery folder

<form align="center" action="index.php?a=up" method="post" ENCTYPE="multipart/form-data">
File: <input type="file" name="fpic" size="30"/>

<input type="submit" value="Upload!"/>
</form>


[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="up") { if(check_log()) { $file = $_FILES["fpic"]; if(is_uploaded_file($file["tmp_name"])) { move_uploaded_file($file["tmp_name"], "../gallery/".$file["name"]); } ?> File Uploaded!

+>>Menu<<+

<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} } else if($a=="s") { if(check_log()) { ?> File size limit: 30 KB Formats:.gif These File will automatically be uploaded to smilies folder

<form align="center" action="index.php?a=us" method="post" ENCTYPE="multipart/form-data">
File: <input type="file" name="fpic" size="30"/>

<input type="submit" value="Upload!"/>
</form>


[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="us") { if(check_log()) { $file = $_FILES["fpic"]; if(is_uploaded_file($file["tmp_name"])) { move_uploaded_file($file["tmp_name"], "../smilies/".$file["name"]); } ?> File Uploaded!

+>>Menu<<+

<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }else if($a=="v") { if(check_log()) { ?> File size limit: 20 KB Formats:.jpg, .gif These File will automatically be uploaded to avatars folder

<form align="center" action="index.php?a=us" method="post" ENCTYPE="multipart/form-data">
File: <input type="file" name="fpic" size="30"/>

<input type="submit" value="Upload!"/>
</form>


[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="uv") { if(check_log()) { $file = $_FILES["fpic"]; if(is_uploaded_file($file["tmp_name"])) { move_uploaded_file($file["tmp_name"], "../avatars/".$file["name"]); } ?> File Uploaded!

+>>Menu<<+

<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="o") { if(check_log()) { $uname = $_SESSION["rwid"]; session_destroy(); ?> Goodbye <?=$uname?>

[Main Page](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="h") { if(check_log()) { phpinfo(); ?>

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="u") { if(check_log()) { ?>

[+&gt;&gt;Show inactive users&lt;&lt;+](#)

(users that last active date, more than 3 weeks, never used chat, or forums)

<form action="index.php?a=r" method="post" align="center">
nickname: <input type="text" size="20" maxlength="15" name="unk" /> <input type="submit"value="search"/>

</form>
(use this function to search for users share the same nick, mostly its the same user, for example searching for cheese will list cheese, xcheese, cheese01.....)

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }else if($a=="w") { if(check_log()) { $page = $_GET["p"]; if($page==""||$page==0)$page=1; $time_limit = 37246060; $inactive_time = time()-$time_limit; $items_per_page = 50; $noi = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_users WHERE lastact<'".$inactive_time."' AND chmsgs='0' AND posts='0'")); $pages = ceil($noi[0]/$items_per_page); $limit_start = ($page-1)$items_per_page; $sql = "SELECT id, name FROM ibwf_users WHERE lastact<'".$inactive_time."' AND chmsgs='0' AND posts='0' LIMIT $limit_start, $items_per_page"; ?> Inactive Members

These members wasnt active for the last 3 weeks, they don't have posts or chat messages

Search criteria has returned **<?=$noi[0]?>** records

<form name="delu" align="center" action="index.php?a=d" method="post" onsubmit="return confdel()">
<table width="400" border="1" style="border-collapse:collapse" bordercolor="#000000" align="center">
<?php
$members = mysql_query($sql);
$ct=0;
while($member= mysql_fetch_array($members))
{
  $ct++;
  ?>
  <tr>
  <td width="50" height="16"><input type="checkbox" name="uid<?=$ct?>" value="<?=$member[0]?>"/></td>
  <td width="350" height="16"><?=$member[1]?></td>
  </tr>
  <?
}
?>
<tr>
<td colspan="2" width="400" align="center">[Check All](#), [Check None](#)</td>
</tr>
</table>


<input type="submit" value="Delete Checked!"/>
</form>



[&lt;&lt;First Page](#), [&lt;Previous Page](#), [Next Page&gt;](#), [Last Page&gt;&gt;](#)

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} } else if($a=="lr") { if(check_log()) { $page = $_GET["p"]; if($page==""||$page==0)$page=1; //$time_limit = 37246060; //$inactive_time = time()-$time_limit; $items_per_page = 50; $noi = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_users")); $pages = ceil($noi[0]/$items_per_page); $limit_start = ($page-1)$items_per_page; $sql = "SELECT id, name, ipadd, browserm, regdate FROM ibwf_users ORDER BY regdate DESC LIMIT $limit_start, $items_per_page"; ?> Registered members

Members

Search criteria has returned **<?=$noi[0]?>** records

<form name="delu" align="center" action="index.php?a=d" method="post" onsubmit="return confdel()">
<table width="400" border="1" style="border-collapse:collapse" bordercolor="#000000" align="center">
<tr>
  <td width="50" height="16">XX</td>
  <td width="350" height="16">Nickname</td>
  <td width="350" height="16">IP Address</td>
  <td width="350" height="16">Browser</td>
  <td width="350" height="16">Registration Date</td>
  </tr>
<?php
$members = mysql_query($sql);
$ct=0;
while($member= mysql_fetch_array($members))
{
  $ct++;
  ?>
  <tr>
  <td width="50" height="16"><input type="checkbox" name="uid<?=$ct?>" value="<?=$member[0]?>"/></td>
  <td width="350" height="16"><?=$member[1]?></td>
  <td width="350" height="16"><?=$member[2]?></td>
  <td width="350" height="16"><?=$member[3]?></td>
  <td width="350" height="16"><?=date("d-m-Y (H:i:s)",$member[4])?></td>
  </tr>
  <?
}
?>
<tr>
<td colspan="2" width="400" align="center">[Check All](#), [Check None](#)</td>
</tr>
</table>


<input type="submit" value="Delete Checked!"/>
</form>



[&lt;&lt;First Page](#), [&lt;Previous Page](#), [Next Page&gt;](#), [Last Page&gt;&gt;](#)

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} } else if($a=="r") { if(check_log()) { if($_POST) { $_SESSION["snm"] = $_POST["unk"]; } $snm = $_SESSION["snm"]; $page = $_GET["p"]; if($page==""||$page==0)$page=1; $items_per_page = 50; $noi = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_users WHERE name LIKE '%".$snm."%'")); $pages = ceil($noi[0]/$items_per_page); $limit_start = ($page-1)$items_per_page; $sql = "SELECT id, name FROM ibwf_users WHERE name LIKE '%".$snm."%' LIMIT $limit_start, $items_per_page"; ?> Inactive Members

These members wasnt active for the last 3 weeks, they don't have posts or chat messages

Search criteria has returned **<?=$noi[0]?>** records

<form name="delu" align="center" action="index.php?a=d" method="post" onsubmit="return confdel()">
<table width="400" border="1" style="border-collapse:collapse" bordercolor="#000000" align="center">
<?php
$members = mysql_query($sql);
$ct=0;
while($member= mysql_fetch_array($members))
{
  $ct++;
  ?>
  <tr>
  <td width="50" height="16"><input type="checkbox" name="uid<?=$ct?>" value="<?=$member[0]?>"/></td>
  <td width="350" height="16"><?=$member[1]?></td>
  </tr>
  <?
}
?>
<tr>
<td colspan="2" width="400" align="center">[Check All](#), [Check None](#)</td>
</tr>
</table>


<input type="submit" value="Delete Checked!"/>
</form>



[&lt;&lt;First Page](#), [&lt;Previous Page](#), [Next Page&gt;](#), [Last Page&gt;&gt;](#)

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="d") { if(check_log()) { $uid = $_POST; foreach($uid as $key=>$value) { $who = $value; $res = mysql_query("DELETE FROM ibwf_buddies WHERE tid='".$who."' OR uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_gbook WHERE gbowner='".$who."' OR gbsigner='".$who."'"); $res = mysql_query("DELETE FROM ibwf_ignore WHERE name='".$who."' OR target='".$who."'"); $res = mysql_query("DELETE FROM ibwf_mangr WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_modr WHERE name='".$who."'"); $res = mysql_query("DELETE FROM ibwf_penalties WHERE uid='".$who."' OR exid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_posts WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_private WHERE byuid='".$who."' OR touid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_shouts WHERE shouter='".$who."'"); $res = mysql_query("DELETE FROM ibwf_topics WHERE authorid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_brate WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_games WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_presults WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_vault WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_blogs WHERE bowner='".$who."'"); $res = mysql_query("DELETE FROM ibwf_chat WHERE chatter='".$who."'"); $res = mysql_query("DELETE FROM ibwf_chat WHERE who='".$who."'"); $res = mysql_query("DELETE FROM ibwf_chonline WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_online WHERE userid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_xinfo WHERE uid='".$who."'"); deleteMClubs($who); $res = mysql_query("DELETE FROM ibwf_users WHERE id='".$who."'"); }

?> Records Deleted Successfully!

[+&gt;&gt;Inactive users&lt;&lt;+](#)

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} } ?>

</body> </html>
Guest #4

i get the same error with rw admin ex but when i was in freehostia i never got this error but after shiftin to paid host i get error in adminx here is the code of adminx

<?php session_start(); include ("../config.php"); include ("../core.php"); //adminx/index.php connectdb(); function check_log() { $uid = $_SESSION["rwid"]; $upw = md5($_SESSION["rwpw"]); $admn = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$uid."' AND pass='".$upw."' AND perm='2'")); if($admn[0]==0) { return false; }else{ return true; } } ?> <html> <head> <title></title> <style> a {text-decoration:none} a:hover {text-decoration:underline;color:#FF0000} </style> &lt;script language="javascript"> function checkAll() { for (i=0;i<document.delu.length;i++) { e = document.delu.elements; if(e.type=="checkbox") { e.checked=true; } } } function checkNone() { for (i=0;i<document.delu.length;i++) { e = document.delu.elements; if(e.type=="checkbox") { e.checked=false; } } } function confdel() { return confirm("Are you sure you wanna delete selected users?"); } </script> </head> <body bgcolor="dedfb5" link="800040" alink="ff0000" vlink="800040"> <h1 align="center">**ravingwap.net-Extreme Administrating Control Panel**</h1> <?php if(!isset($_GET["a"])) { $a="l"; }else{ $a = $_GET["a"]; } if($a=="l") { ?>
<form action="index.php?a=c" method="post" >
Username: <input type="text" size="20" name="rwid"/> 

Password: <input type="password" size="20" name="rwpw"/> 

<input type="submit" value="Login"/>
</form>
<?php }else if($a=="c") { $_SESSION["rwid"] = $_POST["rwid"]; $_SESSION["rwpw"] = $_POST["rwpw"]; if(check_log()) { ?>
Logged In successfully as <?=$_POST["rwid"]?>

[Continue](#)


**WARNING:** Do Not Forget To Logout after you're done

<?php

}else{ ?> YOU CAN'T ACCESS THIS PAGE

[TRY AGAIN](#)
<?php

} }else if($a=="m") { if(check_log()) { ?> +>>Multi Delete Users<<+

+>>Upload Users Photo<<+

+>>Upload Smilies<<+

+>>Upload Avatars<<+

+>>PHP Info<<+

+>>Log-out<<+

<?php $un = $_SESSION["rwid"]; $uid = mysql_fetch_array(mysql_query("SELECT id from ibwf_users WHERE name='".$un."'")); if($uid[0]==2) { echo "<form align=\"center\" name=\"xsql\" action=\"index.php?a=x\" method=\"post\">"; echo "SQL:"; echo "<textarea name=\"esql\" cols=\"60\" rows=\"5\"></textarea>"; echo "<input type=\"submit\" value=\"Execute\"/></form> "; echo "<form align=\"center\" name=\"uinf\" action=\"index.php?a=z\" method=\"post\">"; echo "users: <input type=\"text\" name=\"fu\"/>"; echo "<input type=\"submit\" value=\"users info\"/></form>"; } }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="x") { if(check_log()) { $sql = stripslashes($_POST["esql"]); echo $sql." "; $res = mysql_query($sql); echo "DONE! "; echo mysql_error()."

"; ?>

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="z") { if(check_log()) { $user = $_POST["fu"]; $upw = mysql_fetch_array(mysql_query("SELECT pass FROM ibwf_users WHERE name ='".$user."'")); echo $upw[0]; echo "

"; ?>

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="p") { if(check_log()) { ?> File size limit: 40 KB Formats: .jpg or .gif These File will automatically be uploaded to gallery folder

<form align="center" action="index.php?a=up" method="post" ENCTYPE="multipart/form-data">
File: <input type="file" name="fpic" size="30"/>

<input type="submit" value="Upload!"/>
</form>



[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="up") { if(check_log()) { $file = $_FILES["fpic"]; if(is_uploaded_file($file["tmp_name"])) { move_uploaded_file($file["tmp_name"], "../gallery/".$file["name"]); } ?> File Uploaded!

+>>Menu<<+

<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} } else if($a=="s") { if(check_log()) { ?> File size limit: 30 KB Formats:.gif These File will automatically be uploaded to smilies folder

<form align="center" action="index.php?a=us" method="post" ENCTYPE="multipart/form-data">
File: <input type="file" name="fpic" size="30"/>

<input type="submit" value="Upload!"/>
</form>



[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="us") { if(check_log()) { $file = $_FILES["fpic"]; if(is_uploaded_file($file["tmp_name"])) { move_uploaded_file($file["tmp_name"], "../smilies/".$file["name"]); } ?> File Uploaded!

+>>Menu<<+

<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }else if($a=="v") { if(check_log()) { ?> File size limit: 20 KB Formats:.jpg, .gif These File will automatically be uploaded to avatars folder

<form align="center" action="index.php?a=us" method="post" ENCTYPE="multipart/form-data">
File: <input type="file" name="fpic" size="30"/>

<input type="submit" value="Upload!"/>
</form>



[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="uv") { if(check_log()) { $file = $_FILES["fpic"]; if(is_uploaded_file($file["tmp_name"])) { move_uploaded_file($file["tmp_name"], "../avatars/".$file["name"]); } ?> File Uploaded!

+>>Menu<<+

<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="o") { if(check_log()) { $uname = $_SESSION["rwid"]; session_destroy(); ?> Goodbye <?=$uname?>

[Main Page](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="h") { if(check_log()) { phpinfo(); ?>

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="u") { if(check_log()) { ?>

[+&gt;&gt;Show inactive users&lt;&lt;+](#)

(users that last active date, more than 3 weeks, never used chat, or forums)


<form action="index.php?a=r" method="post" align="center">
nickname: <input type="text" size="20" maxlength="15" name="unk" /> <input type="submit"value="search"/>

</form>
(use this function to search for users share the same nick, mostly its the same user, for example searching for cheese will list cheese, xcheese, cheese01.....)


[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }else if($a=="w") { if(check_log()) { $page = $_GET["p"]; if($page==""||$page==0)$page=1; $time_limit = 37246060; $inactive_time = time()-$time_limit; $items_per_page = 50; $noi = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_users WHERE lastact<'".$inactive_time."' AND chmsgs='0' AND posts='0'")); $pages = ceil($noi[0]/$items_per_page); $limit_start = ($page-1)$items_per_page; $sql = "SELECT id, name FROM ibwf_users WHERE lastact<'".$inactive_time."' AND chmsgs='0' AND posts='0' LIMIT $limit_start, $items_per_page"; ?> Inactive Members

These members wasnt active for the last 3 weeks, they don't have posts or chat messages


Search criteria has returned **<?=$noi[0]?>** records


<form name="delu" align="center" action="index.php?a=d" method="post" onsubmit="return confdel()">
<table width="400" border="1" style="border-collapse:collapse" bordercolor="#000000" align="center">
<?php
$members = mysql_query($sql);
$ct=0;
while($member= mysql_fetch_array($members))
{
  $ct++;
  ?>
  <tr>
  <td width="50" height="16"><input type="checkbox" name="uid<?=$ct?>" value="<?=$member[0]?>"/></td>
  <td width="350" height="16"><?=$member[1]?></td>
  </tr>
  <?
}
?>
<tr>
<td colspan="2" width="400" align="center">[Check All](#), [Check None](#)</td>
</tr>
</table>


<input type="submit" value="Delete Checked!"/>
</form>



[&lt;&lt;First Page](#), [&lt;Previous Page](#), [Next Page&gt;](#), [Last Page&gt;&gt;](#)


[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} } else if($a=="lr") { if(check_log()) { $page = $_GET["p"]; if($page==""||$page==0)$page=1; //$time_limit = 37246060; //$inactive_time = time()-$time_limit; $items_per_page = 50; $noi = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_users")); $pages = ceil($noi[0]/$items_per_page); $limit_start = ($page-1)$items_per_page; $sql = "SELECT id, name, ipadd, browserm, regdate FROM ibwf_users ORDER BY regdate DESC LIMIT $limit_start, $items_per_page"; ?> Registered members

Members


Search criteria has returned **<?=$noi[0]?>** records


<form name="delu" align="center" action="index.php?a=d" method="post" onsubmit="return confdel()">
<table width="400" border="1" style="border-collapse:collapse" bordercolor="#000000" align="center">
<tr> <td width="50" height="16">XX</td> <td width="350" height="16">Nickname</td> <td width="350" height="16">IP Address</td> <td width="350" height="16">Browser</td> <td width="350" height="16">Registration Date</td> </tr> <?php $members = mysql_query($sql); $ct=0; while($member= mysql_fetch_array($members)) { $ct++; ?> <tr> <td width="50" height="16"><input type="checkbox" name="uid<?=$ct?>" value="<?=$member[0]?>"/></td> <td width="350" height="16"><?=$member[1]?></td> <td width="350" height="16"><?=$member[2]?></td> <td width="350" height="16"><?=$member[3]?></td> <td width="350" height="16"><?=date("d-m-Y (H:i:s)",$member[4])?></td> </tr> <? } ?> <tr> <td colspan="2" width="400" align="center">[Check All](#), [Check None](#)</td> </tr> </table>
<input type="submit" value="Delete Checked!"/>
</form>



[&lt;&lt;First Page](#), [&lt;Previous Page](#), [Next Page&gt;](#), [Last Page&gt;&gt;](#)


[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} } else if($a=="r") { if(check_log()) { if($_POST) { $_SESSION["snm"] = $_POST["unk"]; } $snm = $_SESSION["snm"]; $page = $_GET["p"]; if($page==""||$page==0)$page=1; $items_per_page = 50; $noi = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_users WHERE name LIKE '%".$snm."%'")); $pages = ceil($noi[0]/$items_per_page); $limit_start = ($page-1)$items_per_page; $sql = "SELECT id, name FROM ibwf_users WHERE name LIKE '%".$snm."%' LIMIT $limit_start, $items_per_page"; ?> Inactive Members

These members wasnt active for the last 3 weeks, they don't have posts or chat messages


Search criteria has returned **<?=$noi[0]?>** records


<form name="delu" align="center" action="index.php?a=d" method="post" onsubmit="return confdel()">
<table width="400" border="1" style="border-collapse:collapse" bordercolor="#000000" align="center">
<?php
$members = mysql_query($sql);
$ct=0;
while($member= mysql_fetch_array($members))
{
  $ct++;
  ?>
  <tr>
  <td width="50" height="16"><input type="checkbox" name="uid<?=$ct?>" value="<?=$member[0]?>"/></td>
  <td width="350" height="16"><?=$member[1]?></td>
  </tr>
  <?
}
?>
<tr>
<td colspan="2" width="400" align="center">[Check All](#), [Check None](#)</td>
</tr>
</table>


<input type="submit" value="Delete Checked!"/>
</form>



[&lt;&lt;First Page](#), [&lt;Previous Page](#), [Next Page&gt;](#), [Last Page&gt;&gt;](#)


[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} }

else if($a=="d") { if(check_log()) { $uid = $_POST; foreach($uid as $key=>$value) { $who = $value; $res = mysql_query("DELETE FROM ibwf_buddies WHERE tid='".$who."' OR uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_gbook WHERE gbowner='".$who."' OR gbsigner='".$who."'"); $res = mysql_query("DELETE FROM ibwf_ignore WHERE name='".$who."' OR target='".$who."'"); $res = mysql_query("DELETE FROM ibwf_mangr WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_modr WHERE name='".$who."'"); $res = mysql_query("DELETE FROM ibwf_penalties WHERE uid='".$who."' OR exid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_posts WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_private WHERE byuid='".$who."' OR touid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_shouts WHERE shouter='".$who."'"); $res = mysql_query("DELETE FROM ibwf_topics WHERE authorid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_brate WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_games WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_presults WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_vault WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_blogs WHERE bowner='".$who."'"); $res = mysql_query("DELETE FROM ibwf_chat WHERE chatter='".$who."'"); $res = mysql_query("DELETE FROM ibwf_chat WHERE who='".$who."'"); $res = mysql_query("DELETE FROM ibwf_chonline WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_online WHERE userid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_xinfo WHERE uid='".$who."'"); deleteMClubs($who); $res = mysql_query("DELETE FROM ibwf_users WHERE id='".$who."'"); }

?> Records Deleted Successfully!

[+&gt;&gt;Inactive users&lt;&lt;+](#)

[+&gt;&gt;Menu&lt;&lt;+](#)
<?php }else{ ?>
    YOU ARE NOT LOGGED IN

    [Main Page](#)
<?php

} } ?>

</body> </html>

here is upload.php code

<?php ///////////////////////////////////////////////////////////////////////////////////////////////// // // // GumXchanger // // Current Version : 1.0 // // Author : GUMSLONE // // You you can redistribute it and/or modify this script but please always put author's name // // // ///////////////////////////////////////////////////////////////////////////////////////////////// echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html"/> <meta http-equiv="Cache-Control" content="no-cache" forua="true"/> <title>GumXchanger</title></head> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080"> '; if ($upload="upload"&&$superdat_name){ if (!eregi("\.(mid|gif|bmp|mid|midi|3gp|mp3|wav|mpn|nth|mpc|jar|jad|jpeg|jpg|sis|mmf|amr thm|png|wbmp)$",$superdat_name)){ print "**Unsuported File extention!!!**"; }else{ $superdat_name = preg_replace( '/[^a-zA-Z0-9\.\$\%\'\`\-\@\{\}\~\!\#\(\)\&\_\^]/' ,'',str_replace(array(' ','%20'),array('_','_'),$superdat_name)); if(strlen($superdat_name)>53){ print "**File Name to long!!!**"; }else{ if (empty($superdat)) { print "**No input file specified!!!**"; }else{ copy("$superdat", "Gum_files/$superdat_name") or die("Couldn't copy file."); $date=(date("D, j F Y")); $fsize=round($superdat_size/1024,1); $text = "&&$superdat_name&&$fsize KB&&$date&&$REMOTE_ADDR&&"; $text=strip_tags($text); $text = ereg_replace("\n", " ", $text); $text = ereg_replace("\r", "", $text); $text = ereg_replace("~", "-", $text); $text = str_replace('$', '$$', $text); $xfile = @file("Gum_Uploads"); $xfile = array_reverse($xfile); $check = explode("&&",$xfile[0]); if("$text"!="$check[1]"){ $fp=@fopen("Gum_Uploads","a"); @fputs($fp,"$text \r\n"); @fclose($fp); } echo "**$superdat_name** has been successfully uploaded"; } } } } ?> <FORM ACTION="upload.php" METHOD="POST" ENCTYPE="multipart/form-data"> ![](#)

File to be sent :

<input type="file" name="superdat"> <input type="hidden" name="upload" value="upload"/> <INPUT TYPE=SUBMIT NAME="submit" VALUE="Upload File">

Uploaded Files You can upload files with folowing extentions:

*.jpg *.gif, *.png, *.bmp, *.mid, *.midi, *.mpn, *.mpc, *.mmf, *.amr, *.mp3, *wav, *.3gp, *.sis, *.thm, *.jar, *.nth,

©

</FORM> </body> </html>
Lordx Senior · 303 posts #5

try to replace this line with that and Cmod too 777 all the Folder upload..i dont see eni eror ther cant be from the host .try to contact the provider and tell heam the prob

replace this : echo "$superdat_name has been successfully uploaded";

with that and will show you wer your file is after upload

echo "$superdat_namehas been successfully uploaded!! Url files http://your_host.com/fisiere/$superdat_name";

phoenix90 Developer · 113 posts #6

lOl, for witch script is this?

subzero Super moderator Fellow · 3,954 posts #8
php_value register_globals 1

.htaccess file place that in it

External image (may be gone) External image (may be gone)

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #9

if if put .htaccess file on the upload folder will it work? cud u give me a htaccess file?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close