Lavascript Boot Tool

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

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

    Comment


      #17
      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[/b]
      What is that code for?

      Comment


        #18
        -lol- you see the topic title Bro Lavascript Boot Tool yep

        Comment


          #19
          Just a autoinstal database for Lavalair Download Autoinstall Just need to change info in set.ptp for database user and pass and ckick install.. the default login for Admin will be User:admin and Pass:admin

          Comment


            #20
            Wow its cool that installer

            Comment


              #21
              Tnx Mate i made the install for me but cant be share

              Comment


                #22
                lmao chris u know who this is???









                Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                Comment

                Working...
                X