Advertisement
plas71k

settings - decoded - part 1

Nov 17th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.04 KB | None | 0 0
  1. <?php
  2. if ( $_GET['mode'] == "removepause" )
  3. {
  4.     @unlink( "cache/pause.txt" );
  5. }
  6. $nk = $_POST['newkey'];
  7. if ( $_POST['delbut'] == "Delete All Keys" )
  8. {
  9.     @unlink( "./cache/keys.txt" );
  10.     $nk = "";
  11. }
  12. include( "functions.php" );
  13. $msg = "";
  14. $keys = @file_get_contents( "./cache/keys.txt" );
  15. if ( 10 < strlen( $nk ) && 0 < !strpos( $keys, $nk ) )
  16. {
  17.     $nk = str_replace( "", "", $nk );
  18.     $nk = explode( "", $nk );
  19.     foreach ( $nk as $n )
  20.     {
  21.         if ( 10 < strlen( $n ) && 0 < !strpos( $keys, $n ) )
  22.         {
  23.             $msg = "<center id=txt>Yahoo API Key Updated</center><br>";
  24.             write2file( "./cache/keys.txt", "<key>".$n."</key>" );
  25.         }
  26.     }
  27. }
  28. $keys = @file_get_contents( "./cache/keys.txt" );
  29. header( "Cache-Control: no-cache" );
  30. header( "Expires: -1" );
  31. include_once( "./login.php" );
  32. if ( $_GET['mode'] == "lickeychange" )
  33. {
  34.     $nlk = $_REQUEST['lickey'];
  35.     $sql = "UPDATE `users` SET `posterkey`='{$nlk}'";
  36.     mysql_query( $sql );
  37.     echo "<script>top.location = \"settings.php\";</script>";
  38. }
  39. if ( $_GET['mode'] == "pauseall" )
  40. {
  41.     $sql = "UPDATE `jobs` SET `status`=0";
  42.     mysql_query( $sql );
  43.     echo "<script>alert(\"All Campaigns Have Been Paused\");top.location = \"manage_campaign.php\";</script>";
  44. }
  45. if ( $_GET['mode'] == "setpinger" )
  46. {
  47.     $p = $_REQUEST['doping'] == "1" ? 1 : 0;
  48.     $q = $_REQUEST['doping'] == "1" ? "ON" : "OFF";
  49.     $sql = "UPDATE `users` SET `ping`={$p}";
  50.     mysql_query( $sql );
  51.     echo "<script>alert(\"Pinger Status Set to {$q}\");top.location = \"settings.php\";</script>";
  52. }
  53. $html = str_replace( "{TITLE}", "Settings", $html );
  54. $html .= "<style>td{height:65px;valign:top;}#generator_form33 {border:1px solid #c7b289;float:left;margin-left:100px;margin-right:100px;margin-top:40px;padding-bottom:20px;width:615px;}</style><body><div class=\"login_home\">        <img src=\"images/logo.png\" alt=\"\" /></div><div id=\"container1\">        <div id=\"navbar\">            <div id=\"link1\">                <a href=\"index.php\">New Campaign</a>            </div>            <div id=\"divider1\">                <img src=\"images/divider.png\" alt=\"\" />            </div>            <div id=\"link2\">                <a href=\"manage_campaign.php\">Manage Campaign</a></div>            <div id=\"divider2\">                <img src=\"images/divider.png\" alt=\"\" /></div>            <div id=\"link3\">                <a href=\"generate_keywords.php\">Keyword Generator</a>            </div>            <div id=\"divider3\">                <img src=\"images/divider.png\" alt=\"\" /></div>            <div id=\"link4\">                <a href=\"generate_names.php\">Name Generator</a></div>            <div id=\"divider4\">                <img src=\"images/divider.png\" alt=\"\" /></div>            <div id=\"link5\">                <a href=\"pinger.php\">Pinger</a>            </div>            <div id=\"divider5\">                <img src=\"images/divider.png\" alt=\"\" /></div>            <div id=\"link6\">                <a href=\"settings.php\" style=\"color: #ffffff;\">Settings</a>            </div>        </div>";
  55. $h2 = "";
  56. $keys = implode( "", $keys );
  57. $keys = rec_bet( "<key>", "</key>", $keys );
  58. foreach ( $keys as $key )
  59. {
  60.     $h2 .= "{$key}";
  61. }
  62. $html .= "<div id=\"generator_form33\" align=\"center\" style=\"background-color:#FFF\"><table> <form method=post><tr><td id=\"txt\" valign=\"top\"> Yahoo API Key<br><small>Please enter your yahoo API key you generated at yahoo developer answers</small></td><td>     {$msg}     <textarea style=\"margin-top: 10px; margin-right: 10px; width: 380px;\" name=newkey >{$h2}</textarea></form></td></tr>  <tr>  <td></td><td><div id=oo style=\"float:left;\"><a href=\"#\" onclick=\"window.document.forms[0].submit();\"><img src=\"images/btn_save.png\" alt=\"\" border=\"0\" /></a></div><div id=ii><form method=POST><input type=hidden name=do value='deleteall' ><input type=image src=\"images/btn_reset.png\" name=delbut value='Delete All Keys'></form></div></td><td></td></tr>";
  63. $sql = "SELECT `posterkey`,`ping` FROM `users`";
  64. $r = mysql_query( $sql );
  65. $r = mysql_fetch_array( $r );
  66. $ping = $r['ping'] == "1" ? "0" : "1";
  67. $pingbtn = $r['ping'] == "1" ? "on" : "off";
  68. $r = $r['posterkey'];
  69. if ( file_exists( "cache/pause.txt" ) )
  70. {
  71.     $ps = "<tr><td id=\"txt\" valign=\"top\">The IP Hosting this Forum has Excedded the Number of Requests sent to Yahoo API, so The Execution is Paused Temprorarly, This will Be removed Automatically. Usually Takes 7-9 Hours (that is untill yahoo removes the ban from the IP) <Br><Br>If you Think this is a mistake, or it has been too Long and pause not cleared, you can Manually force to remove pause by clicking the following button, the pause will be restored if yahoo still says we have Excedded Limit.</small></td><td valign=\"top\"> <form method=post action=\"settings.php?mode=removepause\"><input type=submit value='Remove Pause'></form></td></tr>";
  72. }
  73. //==================================PAYMENT===========================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement