Advertisement
plas71k

csp - index - decoded

Nov 16th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.76 KB | None | 0 0
  1. <?php
  2. require("includes/configcheck.php");
  3. require("config.php");
  4. require("includes/settings.php");
  5.  
  6. $cleanlogin = "0";
  7. $conn = @mysql_connect($dbhost, $dbuser, $dbpass) or die("Error connecting to database");
  8. mysql_select_db($dbname, $conn);
  9. $sql        = mysql_query("SELECT * FROM cmum_settings WHERE id='1'");
  10. $line       = mysql_fetch_array($sql);
  11. $cleanlogin = $line["cleanlogin"];
  12. mysql_close($conn);
  13. if ($cleanlogin == "1") {
  14.     $pagetitle     = "&nbsp;";
  15.     $headertitle   = "";
  16.     $versionfooter = "";
  17.     $favicon       = "";
  18. } else {
  19.     $pagetitle     = ":: " . $longtitle;
  20.     $headertitle   = $longtitle;
  21.     $versionfooter = "v" . $version;
  22.     $favicon       = "images/favicon.ico";
  23. }
  24. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  25. <html xmlns="http://www.w3.org/1999/xhtml">
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=';
  28. print($charset);
  29. echo '" />
  30. <p align="center">
  31.  
  32. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  33. <title>CSP ActiveCode - Login</title>
  34. <link href="css/style.css" rel="stylesheet" type="text/css" />
  35. </head>
  36.  
  37. <body>
  38. <form id="form1" name="form1" method="post" action="login.php">
  39.  <br />
  40.  <br />
  41.  <br />
  42.  <br />
  43.  
  44.  <br />
  45.  <table width="350" border="0" align="center" cellpadding="0" cellspacing="0">
  46.    <tr>
  47.      <td><div class="Contorno">
  48.        <table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
  49.          <tr>
  50.            <td colspan="2"><div align="center" class="TitoloLogin">Active-Code User Manager 2011</div></td>
  51.          </tr>
  52.          <tr>
  53.            <td width="150">&nbsp;</td>
  54.            <td width="150">&nbsp;</td>
  55.          </tr>
  56.          <tr>
  57.            <td class="TestoDesc">Username :</td>
  58.            <td><label for="password"></label>
  59.              <input name="loginuser" type="text" class="LoginBox" id="textfield2" /></td>
  60.               <img border="0" src="images/lock.png"></p>
  61.          </tr>
  62.          <tr>
  63.            <td class="TestoDesc">Password :</td>
  64.            <td><label for="textfield3"></label>
  65.              <input name="loginpass" type="password" class="LoginBox" id="textfield3" /></td>
  66.          </tr>
  67.          <tr>
  68.            <td>&nbsp;</td>
  69.            <td>&nbsp;</td>
  70.          </tr>
  71.          <tr>
  72.            <td>&nbsp;</td>
  73.            <td><input name="button" type="submit" class="LoginBox" id="button" value="Login" /></td>
  74.          </tr>
  75.          <tr>
  76.            <td>&nbsp;</td>
  77.            <td>&nbsp;</td>
  78.          </tr>
  79.        </table>
  80.      </div></td>
  81.    </tr>
  82.  </table>
  83.  <br />
  84. </form>
  85. </body>
  86. </html>';
  87. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement