delete all pms in tools

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

    delete all pms in tools

    any ov ya able help me do this eres wot i got in hostproc wen i click it it just deletes read inboxs and not all inboxs
    PHP Code:
    //////////////////////////clear inboxs//////////////////////////
    else if($action=="delallpms")
    {
      echo 
    "<head>";
      echo 
    "<title>Host Tools</title>";
      echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
    "</head>";
      echo 
    "<body>";
      echo 
    "<p align=\"center\">";
      echo 
    "<br/>";
      
    $res mysql_query("DELETE FROM ibwf_private WHERE reported!='1' AND starred='1' AND unread='1'");
      if(
    $res)
      {
      echo 
    "<img src=\"../images/ok.gif\" alt=\"O\"/>All PMS  were deleted";
      }else{
      echo 
    "<img src=\"../images/notok.gif\" alt=\"X\"/>Database Error!";
      }
      echo 
    "<a href=\"hostcp.php?action=clrdta&amp;sid=$sid\">Clear Data</a><br/>";
      echo 
    "<a href=\"hostcp.php?action=hostcp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Host Tools</a><br/>";
      echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p></body>";


    any help b great guys thanx
    Last edited by subzero; 28.04.09, 19:08.

    #2
    not pinned inbox dont deleted
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      This code here will delete all

      PHP Code:
      //////////////////////////clear inboxs//////////////////////////
      else if($action=="delallpms")
      {
      echo 
      "<head>";
      echo 
      "<title>Host Tools</title>";
      echo 
      "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
      "</head>";
      echo 
      "<body>";
      echo 
      "<p align=\"center\">";
      echo 
      "<br/>";
      $res mysql_query("DELETE FROM ibwf_private");
      if(
      $res)
      {
      echo 
      "<img src=\"../images/ok.gif\" alt=\"O\"/>All PMS were deleted";
      }else{
      echo 
      "<img src=\"../images/notok.gif\" alt=\"X\"/>Database Error!";
      }
      echo 
      "<a href=\"hostcp.php?action=clrdta&amp;sid=$sid\">Cle ar Data</a><br/>";
      echo 
      "<a href=\"hostcp.php?action=hostcp&amp;sid=$sid\"><im g src=\"../images/admn.gif\" alt=\"\"/>Host Tools</a><br/>";
      echo 
      "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
      "</p></body>";

      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
      Visit: WapMasterz Coming Back Soon!
      _______
      SCRIPTS FOR SALE BY SUBZERO
      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
      _______
      Info & Tips
      php.net
      w3schools.com

      Comment


        #4
        Originally posted by subzero View Post
        This code here will delete all

        PHP Code:
        //////////////////////////clear inboxs//////////////////////////
        else if($action=="delallpms")
        {
        echo 
        "<head>";
        echo 
        "<title>Host Tools</title>";
        echo 
        "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
        "</head>";
        echo 
        "<body>";
        echo 
        "<p align=\"center\">";
        echo 
        "<br/>";
        $res mysql_query("DELETE FROM ibwf_private");
        if(
        $res)
        {
        echo 
        "<img src=\"../images/ok.gif\" alt=\"O\"/>All PMS were deleted";
        }else{
        echo 
        "<img src=\"../images/notok.gif\" alt=\"X\"/>Database Error!";
        }
        echo 
        "<a href=\"hostcp.php?action=clrdta&amp;sid=$sid\">Cle ar Data</a><br/>";
        echo 
        "<a href=\"hostcp.php?action=hostcp&amp;sid=$sid\"><im g src=\"../images/admn.gif\" alt=\"\"/>Host Tools</a><br/>";
        echo 
        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
        echo 
        "</p></body>";

        and then users will 'kill' owner LMAO:D
        It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
        ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
        ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
        キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

        Comment


          #5
          lol thats so true! :D
          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
          Visit: WapMasterz Coming Back Soon!
          _______
          SCRIPTS FOR SALE BY SUBZERO
          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            lol thanx m8 its not for owners just me as host incase i need it save me goin in database to do it thanx bud

            Comment


              #7
              i did want just ghost inboxs to b deleted but am new to this so not sure if can b done

              Comment


                #8
                this will delete whats being entered in sql
                Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                Visit: WapMasterz Coming Back Soon!
                _______
                SCRIPTS FOR SALE BY SUBZERO
                Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                _______
                Info & Tips
                php.net
                w3schools.com

                Comment


                  #9
                  yeah thanks i just added it and works nice 1 bud

                  Comment


                    #10
                    Originally posted by lee27 View Post
                    yeah thanks i just added it and works nice 1 bud
                    whats the coding ur using for host tools i been trying to get host tools on my script so i am not down as owner on my sites can u help me please with it thanks

                    Comment


                      #11
                      could also just add in a tiny bit where it says $res = mysql_query("DELETE FROM ibwf_private WHERE reported!='1' AND starred='1' AND unread='1'");

                      to

                      $res = mysql_query("DELETE FROM ibwf_private WHERE reported!='1' AND starred='1' AND unread='1' AND read='1'");

                      Comment


                        #12
                        whats the coding ur using for host tools i been trying to get host tools on my script so i am not down as owner on my sites can u help me please with it thanks

                        Comment


                          #13
                          i'm not stupid enough to add tools like that to my scripts so i don't use any
                          all my work is done via a root terminal from my server so cannot give you anything sorry

                          Comment

                          Working...
                          X