Lavascript Boot Tool

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

21 replies · 2,091 views · started 19 years ago · 1 min read

5 participants
linkrx7 #1

this line goes into modcp under $action=="user"

echo "<a href="admproc.php?action=boot&sid=$sid&who=$who">Boot</a> ";

this next code goes into admproc

if($action=="boot") { $who = $_GET["who"]; $user = getnick_uid($who); echo "<card id="main" title="Admin Tools">"; echo " "; $uid = getuid_sid($sid); $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); $trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name='".$user."'")); if($trgtperm>$perm){ echo "<img src="../images/notok.gif" alt="x"/> Error!!! Permission Denied... "; echo " U Cannot Boot $user "; echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo " "; }else{ echo " "; $res = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$who."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='boot', details='".getnick_uid(getuid_sid($sid))." booted $user', actdt='".time()."'"); echo "<img src="../images/ok.gif" alt="O"/>$user Booted successfully"; }else{ echo "<img src="../images/notok.gif" alt="X"/>Error booting $user"; } echo "

<a href="index.php?action=viewuser&who=$who&sid=$sid">$user's Profile</a> "; echo "<a href="admincp.php?action=admincp&sid=$sid"><img src="../images/admn.gif" alt=""/>Admin Tools</a> "; echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo " "; } echo "</card>"; } this will allow a boot tool where mods cannot boot admin but admin can boot mods and same with owner if u hav that level might want to add that part to rest ya tools i redid all mine this way its much more secure

linkrx7 #2

i also hav many more updates that i did myself including themes for xhtml where users can change theme a block script for jus browsers only which i use to block opera mini and anonymouse.org i hav popups 4 the inbox a gallery upload script thatresizes the images to 128pixels a rediect for xhtml that redirects xhtml browsers and older phones get taken to wml version tha anti spam auto ban on every site feature like forums inbox chat and shoutbox

hardstyle Developer · 154 posts #3

i also hav many more updates that i did myself including themes for xhtml where users can change theme a block script for jus browsers only which i use to block opera mini and anonymouse.org i hav popups 4 the inbox a gallery upload script thatresizes the images to 128pixels a rediect for xhtml that redirects xhtml browsers and older phones get taken to wml version tha anti spam auto ban on every site feature like forums inbox chat and shoutbox

how about sharing those updates you made???

8th wonder of the world

linkrx7 #4

how about sharing those updates you made???

what upadtes u want n mayb ill share them...

i also few days ago seperated popups from inbox and only buddies can send popups also put in a popup dialog incase users accidently skip 1 its integratedinto modlog and has reporting option

hardstyle Developer · 154 posts #5

what upadtes u want n mayb ill share them...

I want all the updates that you listed, please.

if you cant send me all the updates then send me the ones that you can..

8th wonder of the world

linkrx7 #6

I want all the updates that you listed, please.

if you cant send me all the updates then send me the ones that you can..

jus tel me which 1s cos there alot of code for some the updates

thanatos Senior · 261 posts #7

jus tel me which 1s cos there alot of code for some the updates

post the image resizer.. and xhtml themes..

Guest #8

jus tel me which 1s cos there alot of code for some the updates

hey on lavalair in the display settings there is a option that lets you choose the colour to put your profile in can you give me the coding to do that

linkrx7 #9

hey on lavalair in the display settings there is a option that lets you choose the colour to put your profile in can you give me the coding to do that

well considering u tried spamming my site brandon ya lucky im putting this on...

add row to ibwf_users:

theme varchar(100) NOT NULL default 'white.css',

insert into eaach php page:

$theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); echo "<link rel="stylesheet" type="text/css" href="$theme">";

put into genproc.php

else if($action=="updtthme") { $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); addonline(getuid_sid($sid),"Updating Theme",""); echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="themes/$theme[0]">"; echo "<head>"; echo "<body>"; $thms = $_POST["thms"]; $uid = getuid_sid($sid); echo " "; $exist = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE uid='".$uid."'")); if ($exist[0]>0) { $res = mysql_query("UPDATE ibwf_users SET theme='".$thms."' WHERE uid='".$uid."'"); }else{ $res = mysql_query("UPDATE ibwf_users SET theme='".$thms."' WHERE uid='".$uid."'"); } echo mysql_error(); if($res) { echo "<img src="images/ok.gif" alt="o"/>Your theme has been updated successfully

"; }else{ echo "<img src="images/notok.gif" alt="x"/>Database Error!

"; } echo "9<a accesskey="9" href="index.php?action=cpanel&sid=$sid">Settings</a> "; echo "0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt=""/>Home</a>"; echo " "; echo "</body>"; }

put into index.php and add link to settings: (index.php?action=sitethms&sid=$sid)

else if($action=="sitethms") { $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); addonline(getuid_sid($sid),"Site Themes",""); echo "<head>"; echo "<title>Site Themes</title>"; echo "<link rel="stylesheet" type="text/css" href="themes/$theme[0]">"; echo "<head>"; echo "<body>"; echo " "; echo "Site Themes "; echo "

changing ur site theme will change all the colors of the site eg: backround, text, links, typing fields etc.. "; echo "<form action="genproc.php?action=updtthme&sid=$sid" method="post">"; echo "<select name="thms">"; echo "<option value="white.css">White</option>"; echo "<option value="black.css">Black</option>"; echo "<option value="red.css">Red</option>"; echo "<option value="blue.css">Blue</option>"; echo "<option value="green.css">Green</option>"; echo "<option value="pink.css">Pink</option>"; echo "</select></form>"; echo " "; echo " "; echo "9<a accesskey="9" href="index.php?action=cpanel&sid=$sid">Settings</a> "; echo "0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt=""/>Home</a>"; echo " "; echo "</body>"; }

u will need the $uid line above the bit that grabs the sql theme and also u need to make the css files as im not putting mine up lol and b4 any1 asks loony already put this up which i gave 2 him not knowing he would post it here

Guest #10

cool stuff man !!

Guest #11

Can you post hire code for "popups 4 the inbox" and for "reputation"

Guest #12

can you post the browser block please

kiss Senior · 294 posts #13

can you post the browser block please

...and maybe someone help me to create a protection like the old script when team can banned himself....

www.inbuzunar.mobi -Your mobile portal pocket

linkrx7 #14

i use this to block a browser

<?php $mobile = "blocked2.php"; $text = $_SERVER['HTTP_USER_AGENT']; $var[0] = 'J2ME'; $var[1] = 'Opera Mini/'; $var[2] = 'anonymouse.org'; $var[3] = 'Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; Series 60'; $result = count($var); for ($i=0;$i<$result;$i++) { $ausg = stristr($text, $var[$i]); if(strlen($ausg)>0) { header("location: $mobile"); echo ' java/opera mini browser detected '; break; } } ?>

then create a error page in ur scripts folder i hav mine in folder called wap and 1 called web

then in each script put this line

include("../blocked.php");

ihad mine on this line in script otherwise u get msg saying header already sent so it has to b the very 1st line under <?php

<?php include("../blocked.php"); include("config.php"); include("core.php");
linkrx7 #15

there are 2 ways to do popups 1 is popups for the inbox and 2 is have them as seperate feature what 1 were ya after?

linkrx7 #16

also best way to have ur tools more secure is to hav a target error msg so that mod cant ban admin or admin cant ban owner etc... jus use the line i put in boot tool 4 rest ya tools trust me it works fine External image (may be gone))

Guest #17

this line goes into modcp under $action=="user"

echo "<a href="admproc.php?action=boot&sid=$sid&who=$who">Boot</a> ";

this next code goes into admproc

if($action=="boot") { $who = $_GET["who"]; $user = getnick_uid($who); echo "<card id="main" title="Admin Tools">"; echo " "; $uid = getuid_sid($sid); $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); $trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name='".$user."'")); if($trgtperm>$perm){ echo "<img src="../images/notok.gif" alt="x"/> Error!!! Permission Denied... "; echo " U Cannot Boot $user "; echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo " "; }else{ echo " "; $res = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$who."'"); if($res) { mysql_query("INSERT INTO ibwf_mlog SET action='boot', details='".getnick_uid(getuid_sid($sid))." booted $user', actdt='".time()."'"); echo "<img src="../images/ok.gif" alt="O"/>$user Booted successfully"; }else{ echo "<img src="../images/notok.gif" alt="X"/>Error booting $user"; } echo "

<a href="index.php?action=viewuser&who=$who&sid=$sid">$user's Profile</a> "; echo "<a href="admincp.php?action=admincp&sid=$sid"><img src="../images/admn.gif" alt=""/>Admin Tools</a> "; echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo " "; } echo "</card>"; } this will allow a boot tool where mods cannot boot admin but admin can boot mods and same with owner if u hav that level might want to add that part to rest ya tools i redid all mine this way its much more secure

What is that code for?

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