Waraxe IT Security Portal
Login or Register
November 25, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 56
Members: 0
Total: 56
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Php -> Is there someone who can explain to me about php coder?
Post new topicReply to topic View previous topic :: View next topic
Is there someone who can explain to me about php coder?
PostPosted: Thu Jul 15, 2010 12:47 am Reply with quote
XteaM
Beginner
Beginner
Joined: Jul 15, 2010
Posts: 4
Location: core of the most beautiful places




Is there someone who can explain to me about the encoder / decoder?
especially, how to decoder this script

Code:
<?php $O00O00O00=__LINE__;$OO00O0000=1868;$O000O0O00=fopen(__FILE__,'rb');while(--$O00O00O00)fgets($O000O0O00,1024);fgets($O000O0O00,4096);$OO00O00O0=(base64_decode(strtr(fread($O000O0O00,372),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));eval($OO00O00O0);return;?>
kr9NHenNHenNHe1lFMamb3klFoxiC2APk19gOLlHOa9gkZXJkZwVkr9NTznNHr8XHt4JkZwShokiF2A2Yy9LcBYvcoAPF3OZfuwPcmklCBWPkr8XHenNHr8XHtXLT08XHr8XHeEXhUXmOB50cbk5d3a3D2iUUylRTlfNaaOnCAkJW2YrcrcMO2fkDApQToxYdanXAbyTF1c2BuiDGjExHjH0YTC3KeLqRz0mRtfnWLYrOAcuUrlhU0xYTL9WAakTayaBa1icBMyJC2OlcMfPDBpqdo1Vd3nxFmY0fbc3Gul6HerZHzW1YjF4KUSvkZLphUL7cMYSd3YlhtONHeEXTznNHeEpK2a2CBXPkr9NHenNHenNHtL7cBYPdZEmNtrsRUnedoaiFJEsRT4YtILktWL8col2woYSCbYzNUkjdoaiFJw+Nt9LDbC+eWPktWLkeWPktWLkNtrsRUntd3O0d20ITolVD3HIRZ8IRU0+eWPktWLkNoOpfJnjdoyzFz0JCM90fo9sdolVD3HJNI0htWLktWL8fBXIC2xiF3H9wMYifuHJNI0htWLktWLkkzSIf3ngdolzfy9jCbOlc29ZDBazhtfzd3k0b2Yvduasdj1scB51b29ZcoaZkmOpfoxlb2xpNUcLcbn0De0xkmYPd3fgC291dmW9HtcpdMYSfBOlNUFVc2a0b3fXdl9jd25MDBFPk21ldmagDB5jduaLcUFpRJFMcbijduaLcT0mRMflfy93Fo5gC29VcMlmhtfscB51b2a4C2x1coAmhUL7weslC2ivwtFktWLktTXvfBX+eWPktWLktT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woySfe0JwJEvNjxJFJEvNI0htWLktWlWFM91cox5wunvf2aZcBWICmLINorIDuklcj0JDuO0FePvR3f3fZ53d3kLFuklF3HVd3kmRZw+a29ZcynZcbYzNt9iNJ4YtILktWLkeWPktWLkNt9LDbC+eWPktWL8R2Opfj4YtILktTXiRU0IRZ8IOM9vfoaZwt0sNI0htWL8R2Opfj4YtILkNtrsRUEvRZnbFMyXFoaZwt0sNI0htWLmKZn3Fy9Md290cbwPhTSIK2ajDo8IkXL8R2kvcuL+eWP8R2i0dBX+kzS=


and how to encoder script be like that?
View user's profile Send private message
PostPosted: Thu Jul 15, 2010 1:59 am Reply with quote
tsabitah
Valuable expert
Valuable expert
Joined: Jul 07, 2010
Posts: 328
Location: surabaya




run the code in your webserver
and see results in a file on the webserver you out.php

Code:
<?php
error_reporting(E_ALL);
$in = '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';
$buff = strtr($in, 'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/');
$buff = base64_decode($buff);
file_put_contents('out.php', $buff);
die("ok");
?>
View user's profile Send private message Visit poster's website
Confused
PostPosted: Thu Jul 15, 2010 7:40 am Reply with quote
XteaM
Beginner
Beginner
Joined: Jul 15, 2010
Posts: 4
Location: core of the most beautiful places




ok.
on my computer installed Xampp webserver. I put the files in the htdocs code.php then I tried to open the code in firefox http://localhost/code.php
the result is
Code:
Fatal error: Call to undefined function wp_list_categories() in C:\xampp\htdocs\footer.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 7


then I put in http://localhost/nitro/wp-content/themes/game/code.php then I run.
the result is
Code:
Fatal error: Call to undefined function wp_list_categories() in C:\xampp\htdocs\nitro\wp-content\themes\game\footer.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 7


I'm very confused, I'm a newbie in this case, can you explain more in detail?
if you want, explain me step by step to decode.
thanx B4....
View user's profile Send private message
PostPosted: Sun Sep 05, 2010 10:03 pm Reply with quote
angelesc
Beginner
Beginner
Joined: Sep 06, 2010
Posts: 1




Hi, can someone please guide me in the right direction,
i have eval(gzuncompress(base64_decode( and the script posted dosen't seems to work

<?php
$OOO0O0O00=__FILE__;$O00O00O00=__LINE__;$OO00O0000=4616;eval(gzuncompress(base64_decode('eNplj1mPgjAAhP8MSduIsSCihPDgfVvv62XDUQ5FwJZD+fWr2c1uNpuZp8nMl4xAMMbkJWy4cUIjKBBCvgIRMAsgvfCDkMJqVSDv4tvI9WjKofAzFSUsK0j/FytYU5H+In4vDa/MIju+JYxyDi2TU1X5cKgdOxTylKUMuoyazh+EJiMRSMdUeban5qMyH8W1S4nz+yFc9+SiPmzcfM9OBvtTJ6DWckY0tRXt2GLbPW+y8Yq7zUn/6hhABO1Ot9cfDEfjyXQ2X5Dlar3Z7vaH4+lsWrZDXc8PLtfwFsXJnfE0y4vHs8SSXFcaarOlVWoAIaTT3Azh7yGkfwLFJl8j')));return;?>
g/O/lh8jrB10d3DRBKr5e7wpmLAHpBxAXR9nfy8WuVihuR7wIRHBfTZGxQEese2jboBsoZ/Jfm3zxSg0jHHFvHYpy8fhmT0jyrGmwSbutyFQy0tTXFwfl7+AwgTiAX4FVoyF+0rJ+KHyZpV+x1gsTZpVRKvvm4pp4PXG2WqwEwSuxv1VghtZHoUl+yYltx0DjiaOl1ZVYwKU2p0n9lHbIEqDSnSpnRBZWRIdCYwru/BoynOQn2c5/PGYUeSYLw1HGBQCElUPGiQOSJ8MuENU8D+7QowgqArrrqqcpg/+N3Cdof2JfnVf9j4qvi0knfdjf2wJVHDz6IQJ9je6RJ7nbnd4wjmeNn98Bm4DKLe/GYSG66bVf2ug4Ocm97IZESQ5M7Y7k/W9KJk4QmU9G4rN9gi6UiVnSLnIhuc9gn4U1UMNLuyl+rcKv29oWLEbURqkOEN2Gd2K935dq+G5UB8Y4ihKsqwmaq9EblRncpaTMf1X g/98Ke8CuC5TmCMWdrtYqBViy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c+Wut/wGiGHP/CRtUBZxzxaAfR8PSbNbjVKTg8a8BdfFXJITQd977oITdL2UnQhcPDR9WCWafsisp/nuxjpOGcF6igkhuM7XwEfeoJu3zyOjAOQwHbRIpTFAJPV2MQxAj15I6A83LMH3ShNgBhiaCf6bj96eHrkCbRcI/ji06/Jd6NS3EdW+RNZ24WNTQERabOPEdMj5AV+zcf3UmCc4zYgmni4NGAhZJn9/smHqqR8u2B+ktB4zJ4jH27B0==




i decoded one time and i got

$O000O0O00=fopen($OOO0O0O00,'rb');
while(--$O00O00O00)fgets($O000O0O00,1024);
fgets($O000O0O00,4096);
$OO00O00O0=gzuncompress(base64_decode(strtr(fread($O000O0O00,492),'1Xt4yAKax+MHo/jz0vqWlRD2w3G5mhgcpFVYBiebPLO968nUrNTCZSuIQsf7JEkd=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));eval($OO00O00O0);



what modifications i need to make to the script above for this to work ?

Code:
<?php
error_reporting(E_ALL);

$in = 'g/O/lh8jrB10d3DRBKr5e7wpmLAHpBxAXR9nfy8WuVihuR7wIRHBfTZGxQEese2jboBsoZ/Jfm3zxSg0jHHFvHYpy8fhmT0jyrGmwSbutyFQy0tTXFwfl7+AwgTiAX4FVoyF+0rJ+KHyZpV+x1gsTZpVRKvvm4pp4PXG2WqwEwSuxv1VghtZHoUl+yYltx0DjiaOl1ZVYwKU2p0n9lHbIEqDSnSpnRBZWRIdCYwru/BoynOQn2c5/PGYUeSYLw1HGBQCElUPGiQOSJ8MuENU8D+7QowgqArrrqqcpg/+N3Cdof2JfnVf9j4qvi0knfdjf2wJVHDz6IQJ9je6RJ7nbnd4wjmeNn98Bm4DKLe/GYSG66bVf2ug4Ocm97IZESQ5M7Y7k/W9KJk4QmU9G4rN9gi6UiVnSLnIhuc9gn4U1UMNLuyl+rcKv29oWLEbURqkOEN2Gd2K935dq+G5UB8Y4ihKsqwmaq9EblRncpaTMf1Xg/98Ke8CuC5TmCM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N2YLRyNbnc+Wut/wGiGHP/CRtUBZxzxaAfR8PSbNbjVKTg8a8BdfFXJITQd977oITdL2UnQhcPDR9WCWafsisp/nuxjpOGcF6igkhuM7XwEfeoJu3zyOjAOQwHbRIpTFAJPV2MQxAj15I6A83LMH3ShNgBhiaCf6bj96eHrkCbRcI/ji06/Jd6NS3EdW+RNZ24WNTQERabOPEdMj5AV+zcf3UmCc4zYgmni4NGAhZJn9/smHqqR8u2B+ktB4zJ4jH27B0==';

$buff = strtr($in,'1Xt4yAKax+MHo/jz0vqWlRD2w3G5mhgcpFVYBiebPLO968nUrNTCZSuIQsf7JEkd=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/');

$buff = base64_decode($buff);

file_put_contents('out.php', $buff);

die("ok");
?>
[/code]
View user's profile Send private message Visit poster's website
PostPosted: Mon Sep 06, 2010 1:55 am Reply with quote
tsabitah
Valuable expert
Valuable expert
Joined: Jul 07, 2010
Posts: 328
Location: surabaya




the process is the same except base64_decode gzuncompress
to more easily use this tool only
http://www.multiupload.com/8QM7LDDG2X

Code:
<?php
define("dbname", $dbname);
define("dbusername", $dbusername);
define("dbuserpass", $dbuserpass);
define("dbhost", $dbhost);
function updateLatestSearches($search)
{
$error_reporting = error_reporting(0);
$file = "latest.txt";
$searches = getLatestSearches();
$searches[count($searches)] = $search;
$searches = array_unique($searches);
if (count($searches) >= 21) {
array_shift($searches);
}
$searches2 = implode("\n", $searches);
$fp2 = fopen($file, "w");
fwrite($fp2, $searches2);
fclose($fp2);
}
function getLatestSearches()
{
$error_reporting = error_reporting(0);
$file = "latest.txt";
$fp = fopen($file, "r");
$searchestmp = fread($fp, filesize($file));
fclose($fp);
$searches = explode("\n", $searchestmp);
foreach ($searches as $i => $searchterm) {
if (!$searchterm) {
unset($searches[$i]);
}
}
return $searches;
}
function printLatestSearches()
{
$error_reporting = error_reporting(0);
$file = "latest.txt";
$fp = fopen($file, "r");
$searchestmp = fread($fp, filesize($file));
fclose($fp);
$searches = explode("\n", $searchestmp);
foreach ($searches as $i => $searchterm) {
$searchterm = str_replace("\n", "", $searchterm);
$searchterm = str_replace("\r", "", $searchterm);
$searchterm = str_replace("+", " ", $searchterm);
$searchterm2 = str_replace(" ", "+", $searchterm);
$searchterm = htmlspecialchars($searchterm);
echo " <a href=\"search-$searchterm2.html\" title=\"$searchterm\">" . $searchterm . "</a> ";
if ($i != (count($searches) - 1)) {
echo " - ";
}
}
}
function js_redirect($url, $seconds = 5)
{
echo "<script language=\"JavaScript\">\n";
echo "<!-- hide code from displaying on browsers with JS turned off\n\n";
echo "function redirect() {\n";
echo "window.location = \"" . $url . "\";\n";
echo "}\n\n";
echo "timer = setTimeout('redirect()', '" . ($seconds * 1000) . "');\n\n";
echo "-->\n";
echo "</script>\n";
return true;
}
function secure_search($s)
{
$s = htmlspecialchars($s);
$s = ltrim($s);
$s = rtrim($s);
$noneed = array("`", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "+", "|", "=", "\\", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", ",", ".", "?", "/", "~");
$s = str_replace($noneed, "", $s);
$s = str_replace(" ", "_", $s);
$s = str_replace("-", "", $s);
return $s;
}
function htmlerror($text)
{
echo "<html><head><title>Error Found</title></head>";
echo "<body><br><br><br><br><font size=4><b>$text<br></b><hr size=1 width=62%
align=left>";
echo "This program has performed an illegal operation. Software police has been
notified.</hr><br><br>";
echo "</font></body></html>";
exit;
}
function iswords($a)
{
$s = str_word_count($a, 1);
$c = count($s);
if ($c != 1) {
$i = 0;
while ($i < $c) {
$wordssearch .= $s[$i] . "%' AND `Title` LIKE '%";
$i++;
}
$wordssearch = substr($wordssearch, 0, (strlen($q) - 22));
} else {
$wordssearch = $a;
}
return $wordssearch;
}
function checksource($a, $d)
{
$c = count($d);
if ($c != 1) {
$i = 0;
while ($i < $c) {
$b .= $d[$i] . "' AND `Source` = '";
$i++;
}
$b = substr($b, 0, (strlen($q) - 18));
} else {
$b = $sourcesites[1];
}
$a = iswords($a);
$qwery = "Select * FROM `Vids` WHERE `Active`='yes' AND (`Title` LIKE '%" . $a . "%') AND `Source`='" . $b . "'";
return $qwery;
}
function countresults($a, $b, $dur, $bydate)
{
$dbconn = mysql_connect(dbhost, dbusername, dbuserpass) or die(mysql_error());
mysql_select_db(dbname, $dbconn) or die(mysql_error());
$a = iswords($a);
$qwery = "Select * FROM `Vids` WHERE `Active`='yes' AND (`Title` LIKE '%" . $a . "%') AND `Source`='" . $b . "'";
switch ($dur) {
case 1:
$duration = "*";
break;
case 2:
$duration = "`Duration`<300";
break;
case 3:
$duration = "`Duration`>300 AND `Duration`<600";
break;
case 4:
$duration = "`Duration`>600";
break;
default:
$duration = "*";
}
switch ($bydate) {
case 1:
$datum = "*";
break;
case 2:
$datum = time() - (1 * 24 * 60 * 60);
break;
case 3:
$datum = time() - (7 * 24 * 60 * 60);
break;
case 4:
$datum = time() - (30 * 24 * 60 * 60);
break;
default:
$datum = "*";
break;
}
if ($duration == "*" && $datum != "*") {
$qwery = $qwery . " AND `Added`>" . $datum . "";
}
if ($duration != "*" && $datum != "*") {
$qwery = $qwery . " AND `Added`>" . $datum . " AND " . $duration . "";
}
if ($duration != "*" && $datum == "*") {
$qwery = $qwery . " AND " . $duration . "";
}
$data = mysql_query($qwery) or die(mysql_error());
if (!mysql_num_rows($data)) {
$count = 0;
} else {
$count = mysql_num_rows($data) or die(mysql_error());
}
mysql_close();
return $count;
}
function showresults($qwery, $a, $limit)
{
$dbconn = mysql_connect(dbhost, dbusername, dbuserpass);
mysql_select_db(dbname, $dbconn) or die(mysql_error());
$qwery = str_replace("WHERE", "WHERE `Source`='$a' AND", $qwery);
$qwery = $qwery . " ORDER BY `ID` DESC LIMIT 0,$limit";
$result = mysql_query($qwery) or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$totalSeconds = $row["Duration"];
$minutes = floor($totalSeconds / 60);
$seconds = $totalSeconds - ($minutes * 60);
if (strlen($seconds) == 1) {
$seconds = "0" . $seconds;
}
$duration = $minutes . ":" . $seconds;
echo '<div class="video-box">
<a href="play-' . $row["ID"] . '-' . $row["Href"] . '.html" rel="' . $row["Source"] . '" target="_top" title="' . $row["Title"] . '">
<img src="' . $row["Image"] . '" width="160" height="120" alt="' . $row["Title"] . '" /></a>
<h4>' . $row["Title"] . '</h4><span class="duration">' . $duration . '</span>
</div> ';
}
mysql_close();
}
function showMoreResults($start, $newlimit, $search, $source)
{
$dbconn = mysql_connect(dbhost, dbusername, dbuserpass);
mysql_select_db(dbname, $dbconn) or die(mysql_error());
$a = iswords($search);
$qwery = "Select * FROM `Vids` WHERE `Source`='" . $source . "' AND `Active`='yes' AND (`Title` LIKE '%" . $a . "%') ORDER BY `ID` DESC LIMIT " . $start . "," . $newlimit . "";
$result = mysql_query($qwery) or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$totalSeconds = $row["Duration"];
$minutes = floor($totalSeconds / 60);
$seconds = $totalSeconds - ($minutes * 60);
if (strlen($seconds) == 1) {
$seconds = "0" . $seconds;
}
$duration = $minutes . ":" . $seconds;
echo '<div class="video-box">
<a href="play-' . $row["ID"] . '-' . $row["Href"] . '.html" rel="' . $row["Source"] . '" target="_top" title="' . $row["Title"] . '">
<img src="' . $row["Image"] . '" width="160" height="120" alt="' . $row["Title"] . '" /></a>
<h4>' . $row["Title"] . '</h4><span class="duration">' . $duration . '</span>
</div> ';
}
mysql_close();
}
function showMoreIndex($start, $newlimit, $source)
{
$dbconn = mysql_connect(dbhost, dbusername, dbuserpass);
mysql_select_db(dbname, $dbconn) or die(mysql_error());
$qwery = "Select * FROM `Vids` WHERE `Source`='" . $source . "' AND `Active`='yes' ORDER BY `ID` DESC LIMIT " . $start . "," . $newlimit . "";
$result = mysql_query($qwery) or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$totalSeconds = $row["Duration"];
$minutes = floor($totalSeconds / 60);
$seconds = $totalSeconds - ($minutes * 60);
if (strlen($seconds) == 1) {
$seconds = "0" . $seconds;
}
$duration = $minutes . ":" . $seconds;
echo '<div class="video-box">
<a href="play-' . $row["ID"] . '-' . $row["Href"] . '.html" rel="' . $row["Source"] . '" target="_top" title="' . $row["Title"] . '">
<img src="' . $row["Image"] . '" width="160" height="120" alt="' . $row["Title"] . '" /></a>
<h4>' . $row["Title"] . '</h4><span class="duration">' . $duration . '</span>
</div> ';
}
mysql_close();
}
function sourceshorcut($a)
{
switch ($a) {
case 'pornhub':
$so = "ph";
break;
case 'redtube':
$so = "rt";
break;
case 'keezmovies':
$so = "km";
break;
case 'brazzers':
$so = "bz";
break;
case 'xvideos':
$so = "xv";
break;
case 'tnaflix':
$so = "tn";
break;
case 'pornrabbit':
$so = "pr";
break;
}
return $so;
}
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
}
function isValidEmail($email)
{
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
return 0;
} else {
return 1;
}
}
function generatePass($length)
{
$possible = "0123456789bcdfghjkmnpqrstvwxyzAFGTHCD";
$i = 0;
while ($i < $length) {
$char = substr($possible, mt_rand(0, strlen($possible) - 1), 1);
if (!strstr($password, $char)) {
$password .= $char;
$i++;
}
}
return $password;
}
function checkLogin()
{
if ($_COOKIE['Username'] != "" and $_COOKIE['Password'] != "") {
$dbconn = mysql_connect(dbhost, dbusername, dbuserpass);
$user = mysql_real_escape_string($_COOKIE['Username']);
$pass = mysql_real_escape_string($_COOKIE['Password']);
mysql_select_db(dbname, $dbconn) or die(mysql_error());
$sql = mysql_query("SELECT * FROM Users Where User='$user' AND Password='$pass'") or die(mysql_error());
if (!mysql_num_rows($sql)) {
return 0;
} else {
return 1;
}
}
}
function checkbookmarklink($id, $user)
{
$dbconn = mysql_connect(dbhost, dbusername, dbuserpass);
mysql_select_db(dbname, $dbconn) or die(mysql_error());
$qwery = "SELECT * FROM `bookmarks` WHERE `user`='$user'";
$data = mysql_query($qwery) or die(mysql_error());
while ($row = mysql_fetch_array($data)) {
$list = $row["list"];
}
$each = explode("|", $list);
$totalb = count($each);
$exist = @array_search($id, $each);
if ($exist > -1) {
echo "<img src='images/error.png' width='24' height='24' hspace='10' vspace='10' border='0' align='absmiddle' /><a href='javascript:;' id='bookmarkremove' style='font-size:18px;'>Remove from bookmarks!</a>";
} else {
echo '<img src="images/addf.png" alt="add to favorites" width="34" height="32" hspace="10" vspace="10" border="0" align="absmiddle" /><a href="javascript:;" id="bookmarklink" style="font-size:18px;">Add to bookmarks</a>';
}
}
function createkey($a)
{
$a = str_replace("www.", "", $a);
$key = md5("vrx6" . $a . "na%#&@*!209ru");
$key = "9368291289" . $key;
$key = base64_encode($key);
$key = substr($key, ceil(strlen($key) / 2), strlen($key) - floor(strlen($key) / 2)) . substr($key, 0, ceil(strlen($key) / 2));
return $key;
}
function checkkey($key)
{
$key = substr($key, ceil(strlen($key) / 2), strlen($key) - floor(strlen($key) / 2)) . substr($key, 0, ceil(strlen($key) / 2));
$key = base64_decode($key);
$key = str_replace("9368291289", "", $key);
$a = $_SERVER['SERVER_NAME'];
$a = str_replace("www.", "", $a);
$checker = md5("vrx6" . $a . "na%#&@*!209ru");
if ($key != $checker) {
mail('admin@zodumil.net', 'Invalid PSS license', $a);
die("Invalid license, contact support on email: admin@zodumil.net or ICQ: 614430");
}
}
function vrx6($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://google.com/bot.html");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_MAXREDIRS, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.0; sk; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)");
curl_setopt($ch, CURLOPT_TIMEOUT, 45);
$f = curl_exec($ch);
echo curl_error($ch);
curl_close($ch);
return $f;
}
function indexVids($source, $total)
{
$dbconn = mysql_connect(dbhost, dbusername, dbuserpass);
mysql_select_db(dbname, $dbconn) or die(mysql_error());
$qwery = "SELECT * FROM `Vids` WHERE `source`='$source' AND `Active`='yes' ORDER BY `ID` DESC LIMIT 0,$total";
$result = mysql_query($qwery) or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$totalSeconds = $row["Duration"];
$minutes = floor($totalSeconds / 60);
$seconds = $totalSeconds - ($minutes * 60);
if (strlen($seconds) == 1) {
$seconds = "0" . $seconds;
}
$duration = $minutes . ":" . $seconds;
$o .= '<div class="video-box">
<a href="play-' . $row["ID"] . '-' . $row["Href"] . '.html" rel="' . $row["Source"] . '" target="_top" title="' . $row["Title"] . '">
<img src="' . $row["Image"] . '" width="160" height="120" alt="' . $row["Title"] . '" /></a>
<h4>' . $row["Title"] . '</h4><span class="duration">' . $duration . '</span>
</div> ';
}
return $o;
}
function countTotal($source)
{
$dbconn = mysql_connect(dbhost, dbusername, dbuserpass);
mysql_select_db(dbname, $dbconn) or die(mysql_error());
$sql = "SELECT * FROM `Vids` WHERE `Source`='$source' AND `Active`='yes'";
$result = mysql_query($sql) or die(mysql_error());
$total = mysql_num_rows($result);
return $total;
}
?>
View user's profile Send private message Visit poster's website
Is there someone who can explain to me about php coder?
www.waraxe.us Forum Index -> Php
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.046 Seconds