Example #1
0
        $UserID = $_SESSION['UserBase']['Member']['EmailAddress'];
    }
    if (mysql_query("INSERT INTO `_adittrack_entries` (\n\t\t\t\t\t\t`ID` ,\n\t\t\t\t\t\t`User` ,\n\t\t\t\t\t\t`Activity` ,\n\t\t\t\t\t\t`Table` ,\n\t\t\t\t\t\t`Entry` ,\n\t\t\t\t\t\t`Element`,\n\t\t\t\t\t\t`Date`\n\t\t\t\t\t\t)\n\t\t\t\t\t\tVALUES (\n\t\t\t\t\t\tNULL , '" . $UserID . "', '" . $Activity . "', '" . $Table . "', '" . $ReturnValue . "', '" . $EID . "', '" . date('Y-m-d H:i:s') . "'\n\t\t\t\t\t\t);")) {
        return true;
    }
    if ($Level == 0) {
        mysql_query("CREATE TABLE IF NOT EXISTS `_adittrack_entries` (\n\t\t\t\t\t  `ID` int(11) NOT NULL auto_increment,\n\t\t\t\t\t  `User` varchar(255) NOT NULL,\n\t\t\t\t\t  `Activity` int(11) NOT NULL,\n\t\t\t\t\t  `Table` varchar(255) NOT NULL,\n\t\t\t\t\t  `Entry` varchar(255) NOT NULL,\n\t\t\t\t\t  `Element` int(11) NOT NULL,\n\t\t\t\t\t  `Date` datetime NOT NULL,\n\t\t\t\t\t  PRIMARY KEY  (`ID`)\n\t\t\t\t\t) ENGINE=MyISAM  DEFAULT CHARSET=utf8");
        return dr_trackActivity($Act, $EID, $ReturnValue, 1);
    }
    return false;
}
// autocomplete Processor
if (!empty($_GET['q_eid'])) {
    $Element = getelement($_GET['q_eid']);
    $Config = $Element['Content'];
    $Table = $Config[decodestring($_GET['f_i'])];
    $Setup = $Config[$Table];
    $Res = mysql_query("SELECT " . $Setup['ID'] . "," . $Setup['Value'] . " FROM `" . $Table . "` WHERE `" . $Setup['Value'] . "` LIKE '%" . $_GET['q'] . "%' OR `" . $Setup['ID'] . "` LIKE '%" . $_GET['q'] . "%' ORDER BY `" . $Setup['Value'] . "` ASC;");
    while ($Out = mysql_fetch_assoc($Res)) {
        echo $Out[$Setup['ID']] . " (" . $Out[$Setup['Value']] . ")|" . $Out[$Setup['ID']] . "\n";
    }
    die;
}
//Validator Unique Processing
if (!empty($_GET['validatorUniques'])) {
    $Part = explode('_', str_replace('entry_', '', $_POST['validateId']), 3);
    $Element = getelement('dt_' . $Part[1]);
    $Config = $Element['Content'];
    $Query = "SELECT count(" . $Config['_ReturnFields'][0] . ") as total FROM " . $Config['_main_table'] . " WHERE `" . $Part[2] . "` = '" . $_POST['validateValue'] . "' LIMIT 1;";
    $Res = mysql_query($Query);
    $count = mysql_fetch_assoc($Res);
Example #2
0
        header("Content-Type: text/plain");
        $scriptfile = @$_SERVER['SCRIPT_FILENAME'];
        if (!$scriptfile) {
            $scriptfile = $_SERVER['ORIG_SCRIPT_FILENAME'];
        }
        $licensefile = dirname(dirname($scriptfile)) . "/license/phphtmledit.lic";
        $size = filesize($licensefile);
        $handle = fopen($licensefile, "r");
        $data = fread($handle, $size);
        //$mqr=get_magic_quotes_runtime();
        //set_magic_quotes_runtime(0);
        //$handle=fopen($licensefile,"rb");
        //$data=fread($handle,$size);
        //fclose($handle);
        //set_magic_quotes_runtime($mqr);
        if (strlen($data) > $size) {
            $data = decodestring($data);
        }
        echo bin2hex($data);
    } else {
        if ($type == "serverip") {
            $ip = @$_SERVER['SER' . 'VER_AD' . 'DR'];
            if ($ip == null) {
                $ip = @$_SERVER['LOC' . 'AL_AD' . 'DR'];
            }
            header("Content-Type: text/plain");
            echo $ip;
        }
    }
}
exit(200);
if (count($rsEmail) > 0) {
    $headers = "From:" . EMAIL_FROM . "\r\n" . 'X-Mailer: PHP/' . phpversion() . "\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n";
    $message .= '<html>
					<body>
					<table widht="100%" border="0">';
    $message .= '<tr>
					<td>Thank you for using services.</td>
				</tr>
				
				<tr>
					<td>Your UserName and Password is below.</td>
				</tr>
				<tr hignt="5"><td></td></tr>
				<tr>
					<td>UserName : '******'UserName'] . '</td>
				</tr>
				<tr>
					<td>Password : '******'Password']) . '</td>
				</tr>';
    $message .= '	</body>
				</html>';
    $Subject = "Recover Password";
    $_SESSION['Success'] = "Username and Password Sent on your email address.";
    mail($email, $Subject, $message, $headers);
    header("Location:" . $AbsoluteURLAdmin . "index.php?p=login&#forgot");
    exit;
} else {
    $_SESSION['WrongMsg'] = "Email address is not correct.";
    header("location:" . $AbsoluteURLAdmin . "index.php?p=login&#forgot");
    exit;
}