Thx <_<
cols=100 rows=10 for me :(
cols=100 rows=10 for me :(
"yesszus, post: 70134":All user edit and delete shoutbox messages LOOL
echo "<div align='right' style='float: right'><a href='" . $site_config['SITEURL'] . "/shoutedit.php?action=edit&msgid=" . $row['msgid'] . "' style='font-size: 8px'>[E]</a> <a href='" . $site_config['SITEURL'] . "/shoutbox.php?del=" . $row['msgid'] . "' style='font-size: 8px'>[D]</a><div>";
with
if (($CURUSER["edit_users"] == "yes")) {
echo "<div align='right' style='float: right'><a href='" . $site_config['SITEURL'] . "/shoutedit.php?action=edit&msgid=" . $row['msgid'] . "' style='font-size: 8px'>[E]</a> <a href='" . $site_config['SITEURL'] . "/shoutbox.php?del=" . $row['msgid'] . "' style='font-size: 8px'>[D]</a><div>";
}
$action = $_POST["action"];
after
require_once("backend/functions.php");
$message = $_GET["msgid"];
to
$msgid = $_GET["msgid"];
change
$res = SQL_Query_exec("SELECT * FROM shoutbox WHERE msgid=".$_GET['msgid']) or sqlerr();
to
$res = SQL_Query_exec("SELECT * FROM shoutbox WHERE msgid=".$msgid);
change
showerror("Error", "Denied!");
to
show_error_msg("Error", "Denied!", 1);
change
showerror("Error", "Message cannot be empty!");
to
show_error_msg("Error", "Message cannot be empty!",1);
change
SQL_Query_exec("UPDATE shoutbox SET message=$message WHERE msgid=$msgid") or sqlerr();
to
SQL_Query_exec("UPDATE shoutbox SET message=$message WHERE msgid=$msgid");
change
linkit("shoutbox.php", "Edit complete....");
to
autolink("shoutbox.php", "Edit complete....");
remove
function linkit($al_url, $al_msg) // create autolink
{
echo "n<meta http-equiv="refresh" content="3; URL=$al_url">n";
echo "<center>n";
echo "<b>$al_msg</b>n";
echo "<p>n<b>Redirecting ...</b>n";
echo "<p>n[ <a href='$al_url'>link</a> ]n";
echo "</td>n</tr>n</table>n</td>n</tr>n</table>n</body>n</html>n";
echo "</center>n";
exit;
}
change
if ($CURUSER["id"] != $arr["userid"] && get_user_class($CURUSER) < 6)
to
if ($CURUSER["id"] != $arr["userid"] && get_user_class() < 6)
change
$action = $_POST["action"];
to
$action = $_GET["action"];
echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutbox.php?del=".$row['msgid']."' style='font-size: 8px'>[D]</a><div>";
to
echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutedit.php?action=edit&msgid=".$row['msgid']."' style='font-size: 8px'>[E]</a> <a href='".$site_config['SITEURL']."/shoutbox.php?del=".$row['msgid']."' style='font-size: 8px'>[D]</a><div>";
No users online
Torrents
Members
Online