Lavascript Boot Tool

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Lavascript Boot Tool

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

    echo "<a href=\"admproc.php?action=boot&amp;sid=$sid&amp;wh o=$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 "<p align=\"center\">";
    $uid = getuid_sid($sid);
    $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name=&#39;".$user."&#39;"));
    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&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
    echo "</p>";
    }else{
    echo "
    ";
    $res = mysql_query("DELETE FROM ibwf_ses WHERE uid=&#39;".$who."&#39;");
    if($res)
    {
    mysql_query("INSERT INTO ibwf_mlog SET action=&#39;boot&#39;, details=&#39;".getnick_uid(getuid_sid($sid))." booted $user&#39;, actdt=&#39;".time()."&#39;");
    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&amp;who=$who&amp; sid=$sid\">$user&#39;s Profile</a>
    ";
    echo "<a href=\"admincp.php?action=admincp&amp;sid=$sid\">< img src=\"../images/admn.gif\" alt=\"\"/>Admin Tools</a>
    ";
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
    echo "</p>";
    }
    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

    #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

    Comment


      #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[/b]
      how about sharing those updates you made???
      8th wonder of the world

      Comment


        #4
        how about sharing those updates you made???[/b]
        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

        Comment


          #5
          what upadtes u want n mayb ill share them...[/b]
          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

          Comment


            #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..[/b]
            jus tel me which 1s cos there alot of code for some the updates

            Comment


              #7
              jus tel me which 1s cos there alot of code for some the updates[/b]
              post the image resizer.. and xhtml themes..

              Comment


                #8
                jus tel me which 1s cos there alot of code for some the updates[/b]
                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

                Comment


                  #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[/b]
                  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 &#39;white.css&#39;,

                  insert into eaach php page:

                  $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                  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=&#39;".$uid."&#39;"));
                  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 "<p align=\"center\">";
                  $exist = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE uid=&#39;".$uid."&#39;"));
                  if ($exist[0]>0)
                  {
                  $res = mysql_query("UPDATE ibwf_users SET theme=&#39;".$thms."&#39; WHERE uid=&#39;".$uid."&#39;");
                  }else{
                  $res = mysql_query("UPDATE ibwf_users SET theme=&#39;".$thms."&#39; WHERE uid=&#39;".$uid."&#39;");
                  }
                  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&amp;sid=$sid\">Sett ings</a>
                  ";
                  echo "0 <a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
                  echo "</p>";
                  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=&#39;".$uid."&#39;"));
                  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 "<p align=\"center\">";
                  echo "Site Themes</p>";
                  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&amp;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 "</p>";
                  echo "<p align=\"center\">";
                  echo "9 <a accesskey=\"9\" href=\"index.php?action=cpanel&amp;sid=$sid\">Sett ings</a>
                  ";
                  echo "0 <a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>";
                  echo "</p>";
                  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

                  Comment


                    #10
                    cool stuff man !!

                    Comment


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

                      Comment


                        #12
                        can you post the browser block please

                        Comment


                          #13
                          can you post the browser block please[/b]
                          ...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

                          Comment


                            #14
                            i use this to block a browser

                            <?php

                            $mobile = "blocked2.php";
                            $text = $_SERVER[&#39;HTTP_USER_AGENT&#39;];
                            $var[0] = &#39;J2ME&#39;;
                            $var[1] = &#39;Opera Mini/&#39;;
                            $var[2] = &#39;anonymouse.org&#39;;
                            $var[3] = &#39;Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; Series 60&#39;;

                            $result = count($var);

                            for ($i=0;$i<$result;$i++)
                            {
                            $ausg = stristr($text, $var[$i]);
                            if(strlen($ausg)>0)
                            {
                            header("location: $mobile");
                            echo &#39;
                            java/opera mini browser detected
                            &#39;;
                            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");

                            Comment


                              #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?

                              Comment

                              Working...
                              X