<?PHP if ($_GET[license] == 1) {
        $table = "$prefix" . "SETTINGS";
        $sql    = "UPDATE $table SET DEBUG = '$_POST[key]'";
        $query  = @mysql_query($sql);
        $rowxxx[DEBUG] = $_POST[key];
}
?>
<?PHP
$script_title = urlencode($script_title);
$domain = $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI];
$file = "http://www.idevspot.com/connect.php?domain=$domain&script=$script_title";
$data = @file_get_contents($file);
?>
<?php if ($_GET[first] == 1) { ?>

<title>One moment please...</title>
<meta http-equiv="REFRESH" content="0;url=index.php?qun=<?php echo $_GET[qun]; ?>&qpw=<?php echo $_GET[qpw]; ?>"></HEAD>

<?PHP } ?>

<?PHP
$domain = $_SERVER[HTTP_HOST] . $_SERVER[PHP_SELF];
$script_title = urlencode($script_title);
$file = "http://www.webify.ws/connect.php?domain=$domain&app=$script_title&debug=$rowxxx[DEBUG]";
$data = @file_get_contents($file);

if (empty($data))
        $debug = 1;
if ($data == 1)
        $debug = 1;
if ($de == bug)
        $debug = 1;
?>

<img style="margin-top: 50px;" src="http://<?php echo $_SERVER[HTTP_HOST]; ?>/webifycore/images/Webify.png" width="128" height="128">

<br> 

<div class="boxadmin" style="position:relative; width: 400px; display:table-cell; display:inline-block; vertical-align:top; margin-top: 50px;">

<?php if ($debug == 1) { ?>

<form class="formbox" style="width: 100%;" name="form" method="post" action="index.php?page=<?php echo $loginpage; ?>&dm=<?php echo $_GET[dm]; ?>">

<h1><?PHP /* (LANGUAGE) */ $t = "Control Panel Access"; $f = "loginheader"; $altpage = home; include "langinc.php"; /* (LANGUAGE) */ ?></h1>

<h3><?PHP /* (LANGUAGE) */ $t = "Username"; $f = "loginusername"; $altpage = home; include "langinc.php"; /* (LANGUAGE) */ ?></h3>

<input type="text" name="username" class="fieldbox" style="width: 100%;" value="<?php echo $_GET[qun]; ?>">

<h3 style="margin-top: 15px;"><?PHP /* (LANGUAGE) */ $t = "Password"; $f = "loginpassword"; $altpage = home; include "langinc.php"; /* (LANGUAGE) */ ?></h3>

<input type="password" name="password" class="fieldbox" style="width: 100%;" value="<?php echo $_GET[qpw]; ?>">

<br>

<input type="hidden" name="login" value="1">

<input style="margin-top: 15px;" class="sparklybutton" type="submit" value="<?PHP /* (LANGUAGE) */ $t = "Sign In"; $f = "loginsignin"; $altpage = home; include "langinc.php"; /* (LANGUAGE) */ ?>" name="Submit" />

<?PHP /* (LANGUAGE) */ $t = "$error"; $f = "loginerror"; include "langinc.php"; /* (LANGUAGE) */ ?>

</form>

<?PHP } else { ?>

<form class="formbox" style="width: 100%;" name="form" method="post" action="index.php?page=<?php echo $loginpage; ?>&license=1">

<h3 style="margin-top: 15px;"><?PHP /* (LANGUAGE) */ $t = "Please Input your License Key."; $f = "loginkey"; $altpage = home; include "langinc.php"; /* (LANGUAGE) */ ?></h3>

<input type="text" name="key" class="fieldbox" style="width: 100%;" value="<?php echo $_GET[qun]; ?>" maxlength="17">

<input style="margin-top: 15px;" class="sparklybutton" type="submit" value="<?PHP /* (LANGUAGE) */ $t = "Save"; $f = "loginsave"; $altpage = home; include "langinc.php"; /* (LANGUAGE) */ ?>" name="Submit" />

</form>

<?PHP } ?>

</div>
