admincp
adminproc
who can help me to make this code from url to device upload
Code:
else if($action=="addsml")
{
echo "<p align=\"center\">";
echo "<b>Add Smilies</b><br/><br/>";
echo "<form action=\"admproc.php?action=addsml&sid=$sid\" method=\"post\">";
echo "Code:<input name=\"smlcde\" maxlength=\"30\"/><br/>";
echo "Image Source:<input name=\"smlsrc\" maxlength=\"200\"/><br/>";
echo "<input type=\"submit\" value=\"Add\"/>";
echo "</form>";
echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Admin CP</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
}
Code:
else if($action=="addsml")
{
$smlcde = $_POST["smlcde"];
$smlsrc = $_POST["smlsrc"];
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("INSERT INTO fun_smilies SET scode='".$smlcde."', imgsrc='".$smlsrc."', hidden='0'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Smilie added successfully";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding Smilie ";
}
echo "<br/><br/><a href=\"admincp.php?action=addsml&sid=$sid\">";
echo "Add Another Smilie</a><br/>";
echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Admin CP</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
}

Comment