Waraxe IT Security Portal
Login or Register
October 15, 2026
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: 1437
Members: 0
Total: 1437
Full disclosure
[0day-rubbish] StreamSets Transformer 3.17.0 auth-mode none fallback and un-sandboxed ScalaDTransform execution to container root (8.1 primary)
[0day-rubbish] RCDevs WebADM 2.4.14 authenticated log viewer sid command injection to webadm uid 999 code execution (7.2)
[0day-rubbish] Maian Cart 3.8 addBanners unrestricted banner upload to PHP webshell and administrator command execution (7.2 primary, PR:H)
[0day-rubbish] IPConfigure Orchid VMS 26.3.0 authenticated DNF repository GPG-key property command injection to root (7.2)
[0day-rubbish] Circutor LineEds 24.11.14-r0 unauthenticated pwrstudio events.xml shellExecute command injection (9.8)
[0day-rubbish] Asustor ADM 3.5.9.RWM1 (AS602T) music.cgi act=live stored-filename command injection reaching system() (8.8 primary, PR:L)
[0day-rubbish] Advantech WebAccess Node 9.2.3 unauthenticated CrystalRpt.aspx file upload and path traversal to code execution in w3wp.exe (9.8)
SEC Consult Research 20261001 :: Arbitrary Email sender spoofing in Apple iCloud mail
SEC Consult SA-20260924-0 :: Multiple Vulnerabilities in Paessler PRTG Network Monitor #CVE-2026-4637 #CVE-2026-4638
[NotCVE-2026-0019] game-music-emu through 0.6.5 VGM Command Interpreter Missing Operand Length Check Allows Heap Out-of-Bounds Read
[NotCVE-2026-0018] game-music-emu (libgme) through 0.6.5 Unbounded GYM Command Loop Allows Heap Out-of-Bounds Read
[NotCVE-2026-0017] game-music-emu (libgme) 0.6.5 and Earlier AY Loader NULL Pointer Dereference Allows Denial of Service
[NotCVE-2026-0016] game-music-emu VGM Command Interpreter Unvalidated 0xE0 PCM Seek Offset Allows Out-of-Bounds Read and Denial of Service
APPLE-SA-09-28-2026-3 macOS Sequoia 15.8.1
APPLE-SA-09-28-2026-2 macOS Tahoe 26.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> please decpde ioncube guys
Post new topicReply to topic View previous topic :: View next topic
please decpde ioncube guys
PostPosted: Thu May 09, 2013 6:15 am Reply with quote
erick
Regular user
Regular user
Joined: Aug 03, 2012
Posts: 9




hey dear guys

i need to decode these files:
http://my.pcparsi.com/i/upload/1/1368115254.zip

please decode

thank you very much indeed :X
View user's profile Send private message
help
PostPosted: Thu May 09, 2013 12:20 pm Reply with quote
erick
Regular user
Regular user
Joined: Aug 03, 2012
Posts: 9




please help me guys Sad
View user's profile Send private message
help
PostPosted: Fri May 10, 2013 11:05 am Reply with quote
erick
Regular user
Regular user
Joined: Aug 03, 2012
Posts: 9




guys please help me Sad
View user's profile Send private message
PHP Decoder
PostPosted: Fri May 10, 2013 12:25 pm Reply with quote
codedecoder
Regular user
Regular user
Joined: Dec 15, 2012
Posts: 21




da.php
Code:

<?php
/*
* Desc: This file is decoded by PHP Decoder
* Website: http://phpdecoder.wordpress.com/
*/
function finduserdata() {
$_file_list = '';

if ($handle = opendir( '/usr/local/directadmin/data/users' )) {

if (false !== $file = readdir( $handle )) {
if (( ( $file != '.' && $file != '..' ) && $file != 'system' )) {
$_file_list .= $file . ':';
}
}

closedir( $handle );
}

$dausertmp = explode( ':', $_file_list );
$dauser = array_filter( $dausertmp );
sort( $dauser );
$hlines = file( '/etc/passwd' );
$userhome = array( );
foreach ($hlines as $key) {
$term = explode( ':', trim( $key ) );
$userhome[$term[0]] = $term[5];
}

$userdata = array( );
$usernumber = count( $dauser );
$i = 13;

while ($i < $usernumber) {
if (file_exists( $userhome[$dauser[$i]] )) {
$userdata[$dauser[$i]] = $userhome[$dauser[$i]];
}

++$i;
}

return $userdata;
}

function checklicense() {
$postfields['licensetype'] = 'Danginx';
$postfields['docroot'] = '/usr/local/directadmin/plugins/danginx';
$postfields['hostname'] = php_uname( 'n' );
$verifyurl = 'https://manage.syslint.com/api/verify.php';
$verifydomain = 'manage.syslint.com';
$localcache = TRUE;
$localcachefile = '/etc/danginx/localkey.txt';
$salt = 'oexibddm2Pdjwusngpholeo4srlnkflyyyucxwdncycwmqkiRdklhfnirkgayhvt';
$licstatus = array( 'Active' => '1000100', 'Reissued' => '1000101', 'Suspended' => '1000110', 'Terminated' => '1000111', 'NotFound' => '1001000' );

if ($localcache == TRUE) {
$comp = $salt . '+' . $verifyurl . '+' . $postfields['hostname'] . '+' . date( 'Ymd' ) . '+' . $postfields['docroot'] . '+' . $postfields['licensetype'];
$revcom = strrev( $comp );
$localkey = sha1( $revcom );

if (( file_exists( $localcachefile ) && 10 < filesize( $localcachefile ) )) {
$cachelic = trim( file_get_contents( $localcachefile ) );

if ($cachelic == $localkey) {
$result['status'] = '1000100';
$result['reason'] = 'Local Key Valid';
}
else {
if (function_exists( 'curl_exec' )) {
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $verifyurl );
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $postfields );
curl_setopt( $ch, CURLOPT_TIMEOUT, 30 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
$resultpre = explode( '', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}


if (( $result['status'] == $licstatus['Active'] || $result['status'] == $licstatus['Reissued'] )) {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, $localkey );
fclose( $fp );
}
else {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, ' ' );
fclose( $fp );
}
}
else {
if (ini_get( 'allow_url_fopen' ) == 1) {
$fp = fsockopen( $verifydomain, 80, $errno, $errstr, 5 );

if ($fp) {
$querystring = '';
foreach ($postfields as $k => $v) {
$querystring .= '' . $k . '=' . urlencode( $v ) . '&';
}

$header = 'POST /api/verify.php HTTP/1.0
';
$header .= 'Host: ' . $verifydomain . '
';
$header .= 'Content-type: application/x-www-form-urlencoded
';
$header .= 'Content-length: ' . @strlen( $querystring ) . '
';
$header .= 'Connection: close

';
$header .= $querystring;
$data = '';
@stream_set_timeout( $fp, 20 );
@fputs( $fp, $header );
$status = @socket_get_status( $fp );

while (( !@feof( $fp ) && $status )) {
$data .= @fgets( $fp, 1024 );
$status = @socket_get_status( $fp );
}

@fclose( $fp );
}

$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}


if (( $result['status'] == $licstatus['Active'] || $result['status'] == $licstatus['Reissued'] )) {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, $localkey );
fclose( $fp );
}
else {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, ' ' );
fclose( $fp );
}
}
else {
$result['status'] = 'php-curl / allow_url_fopen is missing in this server. Please install it';
}
}
}
}
else {
if (function_exists( 'curl_exec' )) {
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $verifyurl );
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $postfields );
curl_setopt( $ch, CURLOPT_TIMEOUT, 30 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}


if (( $result['status'] == $licstatus['Active'] || $result['status'] == $licstatus['Reissued'] )) {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, $localkey );
fclose( $fp );
}
else {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, ' ' );
fclose( $fp );
}
}
else {
if (ini_get( 'allow_url_fopen' ) == 1) {
$fp = fsockopen( $verifydomain, 80, $errno, $errstr, 5 );

if ($fp) {
$querystring = '';
foreach ($postfields as $k => $v) {
$querystring .= '' . $k . '=' . urlencode( $v ) . '&';
}

$header = 'POST /api/verify.php HTTP/1.0
';
$header .= 'Host: ' . $verifydomain . '
';
$header .= 'Content-type: application/x-www-form-urlencoded
';
$header .= 'Content-length: ' . @strlen( $querystring ) . '
';
$header .= 'Connection: close

';
$header .= $querystring;
$data = '';
@stream_set_timeout( $fp, 20 );
@fputs( $fp, $header );
$status = @socket_get_status( $fp );

while (( !@feof( $fp ) && $status )) {
$data .= @fgets( $fp, 1024 );
$status = @socket_get_status( $fp );
}

@fclose( $fp );
}

$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}


if (( $result['status'] == $licstatus['Active'] || $result['status'] == $licstatus['Reissued'] )) {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, $localkey );
fclose( $fp );
}
else {
$fp = fopen( $localcachefile, 'w' );
fwrite( $fp, ' ' );
fclose( $fp );
}
}
else {
$result['status'] = 'php-curl / allow_url_fopen is missing in this server. Please install it';
}
}
}
}
else {
if (function_exists( 'curl_exec' )) {
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $verifyurl );
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $postfields );
curl_setopt( $ch, CURLOPT_TIMEOUT, 30 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}
}
else {
if (ini_get( 'allow_url_fopen' ) == 1) {
$fp = fsockopen( $verifydomain, 80, $errno, $errstr, 5 );

if ($fp) {
$querystring = '';
foreach ($postfields as $k => $v) {
$querystring .= '' . $k . '=' . urlencode( $v ) . '&';
}

$header = 'POST /api/verify.php HTTP/1.0
';
$header .= 'Host: ' . $verifydomain . '
';
$header .= 'Content-type: application/x-www-form-urlencoded
';
$header .= 'Content-length: ' . @strlen( $querystring ) . '
';
$header .= 'Connection: close

';
$header .= $querystring;
$data = '';
@stream_set_timeout( $fp, 20 );
@fputs( $fp, $header );
$status = @socket_get_status( $fp );

while (( !@feof( $fp ) && $status )) {
$data .= @fgets( $fp, 1024 );
$status = @socket_get_status( $fp );
}

@fclose( $fp );
}

$resultpre = explode( '
', $data );

foreach ($resultpre as $term) {

if (preg_match( '/=>/', $term )) {
$c = explode( '=>', str_replace( ']', '', str_replace( '[', '', $term ) ) );
$key = trim( $c[0] );
$val = trim( $c[1] );
$result[$key] = $val;
continue;
}
}
}
else {
$result['status'] = 'Php-curl is missing in this server. Please install it';
}
}
}

return $result;
}

?>


dan.php
Code:

<?php
/*
* Desc: This file is decoded by PHP Decoder
* Website: http://phpdecoder.wordpress.com/
*/
include( 'danginxlib.php' );
$result = checklicense( );

if (( $result['status'] == 1000100 || $result['status'] == 1000101 )) {
$vhostDate = '#Auto generated vhost configuration by Da Nginix. Any customization will be lost';
$DBINO = array( );
$GLOBIP = '';
$userdata = finduserdata( );
$cPuser = array( );
foreach ($userdata as $user => $home) {
$cPuser[] = $user;
}

sort( $cPuser );
$ArrLen = count( $cPuser );
$cpUsernumber = $ArrLen - 1;
$i = 21;

while ($i <= $cpUsernumber) {
$USER = $cPuser[$i];
$domain = file( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains.list' );
$dom_count = count( $domain );
$j = 21;

while ($j < $dom_count) {
$DOMAIN = trim( $domain[$j] );
$ux = file( '' . '/usr/local/directadmin/data/users/' . $USER . '/user.conf' );
foreach ($ux as $line_num => $line) {

if (preg_match( '/^ip=/', $line )) {
$ipdata = explode( '=', $line );
$GLOBIP = trim( $ipdata[1] );
break;
}
}


if (file_exists( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.conf' )) {
$uf = file( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.conf' );
foreach ($uf as $line_num => $line) {

if (preg_match( '/^ip=/', $line )) {
$ipdata = explode( '=', $line );
$DOMIP = trim( $ipdata[1] );
break;
}

$DOMIP = $GLOBIP;
}

$DOMDOCROOT = '' . '/home/' . $USER . '/domains/' . $DOMAIN . '/public_html';
$ACCESSLOG = '' . '/var/log/httpd/domains/' . $DOMAIN . '.log';
}


if (( file_exists( '' . '/etc/danginx/expires/' . $DOMAIN ) && filesize( '' . '/etc/danginx/expires/' . $DOMAIN ) != 0 )) {
$exp_line = file( '' . '/etc/danginx/expires/' . $DOMAIN );
$EXPIRE = trim( $exp_line[0] );
}
else {
$EXPIRE = '24h';
}


if (( file_exists( '' . '/etc/danginx/custom/' . $DOMAIN ) && filesize( '' . '/etc/danginx/custom/' . $DOMAIN ) != 0 )) {
$CUSTOM = 'include "/etc/danginx/custom/' . $DOMAIN . '"';
}
else {
$CUSTOM = '#include "/etc/danginx/custom/' . $DOMAIN . '"';
}

$fval = '' . $DOMAIN . '|' . ( '' . $DOMIP ) . '|' . ( '' . $DOMDOCROOT ) . '|' . ( '' . $ACCESSLOG ) . '|' . ( '' . $EXPIRE ) . '|' . ( '' . $CUSTOM );
$DBINO[] = $fval;
$POINTERFILE = '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.pointers';

if (( file_exists( $POINTERFILE ) && filesize( '' . $POINTERFILE ) != 0 )) {
$PDOMAIN = array( );
$pfile = file( $POINTERFILE );
foreach ($pfile as $line_num => $line) {
$tmx = explode( '=alias', $line );
$PDOMAIN[$line_num] = trim( $tmx[0] );
}

foreach ($PDOMAIN as $XDOMAIN) {
$fval = '' . $XDOMAIN . '|' . ( '' . $DOMIP ) . '|' . ( '' . $DOMDOCROOT ) . '|' . ( '' . $ACCESSLOG ) . '|' . ( '' . $EXPIRE ) . '|' . ( '' . $CUSTOM );
$DBINO[] = $fval;
}
}


if (file_exists( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.subdomains' )) {
$subdomain = file( '' . '/usr/local/directadmin/data/users/' . $USER . '/domains/' . $DOMAIN . '.subdomains' );
$subdom_count = count( $subdomain );

if (0 < $subdom_count) {
$k = 21;

while ($k < $subdom_count) {
$sub = trim( $subdomain[$k] );
$SUBDOMAIN = '' . $sub . '.' . ( '' . $DOMAIN );
$SUBDOCROOT = '' . '/home/' . $USER . '/domains/' . $DOMAIN . '/public_html/' . $sub;
$SUBACCESSLOG = '' . '/var/log/httpd/domains/' . $DOMAIN . '.' . $sub . '.log';

if (( file_exists( '' . '/etc/danginx/expires/' . $SUBDOMAIN ) && filesize( '' . '/etc/danginx/expires/' . $SUBDOMAIN ) != 0 )) {
$exp_line = file( '' . '/etc/danginx/expires/' . $SUBDOMAIN );
$EXPIRE = trim( $exp_line[0] );
}
else {
$EXPIRE = '24h';
}


if (( file_exists( '' . '/etc/danginx/custom/' . $SUBDOMAIN ) && filesize( '' . '/etc/danginx/custom/' . $SUBDOMAIN ) != 0 )) {
$CUSTOM = 'include "/etc/danginx/custom/' . $SUBDOMAIN . '"';
}
else {
$CUSTOM = '#include "/etc/danginx/custom/' . $SUBDOMAIN . '"';
}

$fval = '' . $SUBDOMAIN . '|' . ( '' . $DOMIP ) . '|' . ( '' . $SUBDOCROOT ) . '|' . ( '' . $SUBACCESSLOG ) . '|' . ( '' . $EXPIRE ) . '|' . ( '' . $CUSTOM );
$DBINO[] = $fval;
++$k;
}
}
}

++$j;
}

++$i;
}


if (!file_exists( '/etc/danginx/enableipv6.conf' )) {
$LISTEN = 'listen 80';
}
else {
$LISTEN = 'listen [::]:80';
}

$vhlines = file( '/etc/danginx/vhost.conf' );
$PROXYCONF = '
';
foreach ($vhlines as $key) {
$PROXYCONF .= ' ' . $key;
}

$linesext = file( '/etc/danginx/fileextensions.txt' );
foreach ($linesext as $key) {

if (preg_match( '/\|/', $key )) {
$file_est = trim( $key );
continue;
}
}

foreach ($DBINO as $DB) {
$tmpar = explode( '|', $DB );
$DOMAIN = $tmpar[0];
$DOMIP = $tmpar[1];
$DOMDOCROOT = $tmpar[2];
$ACCESSLOG = $tmpar[3];
$EXPIRETIME = $tmpar[4];
$CUSTOMINCLUDE = $tmpar[5];

if (!file_exists( '' . '/etc/danginx/direct/' . $DOMAIN )) {
$vhostDate .= '' . '#################################################################
########### Vhost configuration of ' . $DOMAIN . '
#################################################################
server {
access_log off;
error_log logs/vhost-error_log warn;
' . $LISTEN . ';
server_name ' . $DOMAIN . ' www.' . $DOMAIN . ';
location ~* ^.+.(' . $file_est . ')$ {
expires ' . $EXPIRETIME . ';
root ' . $DOMDOCROOT . ';
error_page 404 = @apache;
access_log ' . $ACCESSLOG . ';
log_not_found off;
}
location ~ /\.ht {
deny all;
}

location / {
log_not_found off;
' . $PROXYCONF . '
proxy_redirect http://www.' . $DOMAIN . ':8888 http://www.' . $DOMAIN . ';
proxy_redirect http://' . $DOMAIN . ':8888 http://' . $DOMAIN . ';
proxy_pass http://' . $DOMIP . ':8888/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location @apache {
internal;
' . $PROXYCONF . '
proxy_redirect http://' . $DOMAIN . ':8888 http://' . $DOMAIN . ';
proxy_pass http://' . $DOMIP . ':8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
' . $CUSTOMINCLUDE . ';
}
';
continue;
}

$vhostDate .= '' . '#################################################################
########### Vhost configuration of ' . $DOMAIN . ' in Direct Proxy
#################################################################
server {
access_log off;
error_log logs/vhost-error_log warn;
' . $LISTEN . ';
server_name ' . $DOMAIN . ' www.' . $DOMAIN . ';
location ~ /\.ht {
deny all;
}
location / {
log_not_found off;
' . $PROXYCONF . '
proxy_redirect http://www.' . $DOMAIN . ':8888 http://www.' . $DOMAIN . ';
proxy_redirect http://' . $DOMAIN . ':8888 http://' . $DOMAIN . ';
proxy_pass http://' . $DOMIP . ':8888/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
' . $CUSTOMINCLUDE . ';

}
';
}

$fh = fopen( '/usr/local/nginx/conf/vhost.conf', 'w' );
fwrite( $fh, $vhostDate );
fclose( $fh );
system( '/etc/init.d/nginx reload' );
return 1;
}


if ($result['status'] == 1000110) {
print 'Your Danginx License seems suspended. Please activate the license ';
$fh = fopen( '/usr/local/nginx/conf/vhost.conf', 'w' );
fwrite( $fh, '#Invalid license' );
fclose( $fh );
return 1;
}


if ($result['status'] == 1000111) {
print 'Your Danginx Licenses Seems to be termianted';
$fh = fopen( '/usr/local/nginx/conf/vhost.conf', 'w' );
fwrite( $fh, '#License Expired' );
fclose( $fh );
return 1;
}

echo 'Invalid License / License Not found, Please purchase a license';
$fh = fopen( '/usr/local/nginx/conf/vhost.conf', 'w' );
fwrite( $fh, '#Invalid License' );
fclose( $fh );
?>


ins.php
Code:

<?php
/*
* Desc: This file is decoded by PHP Decoder
* Website: http://phpdecoder.wordpress.com/
*/

include( 'danginxlib.php' );
$result = checklicense( );

if (( $result['status'] == 1000100 || $result['status'] == 1000101 )) {
if ($argc < 2) {
echo '' . 'Copyright(c) @ danginx.com . All rights reserverd.
Usage: --help - Show this menu --version=VERSION , The Nginx version that you like to install';
return 1;
}

foreach ($argv as $val) {

if (preg_match( '/^--version=/', $val )) {
$ud = explode( '--version=', $val );
$version = trim( $ud[1] );
continue;
}
}

echo '------------------------------------';
echo '' . ' Installing Nginx version ' . $version . ' ';
echo '------------------------------------';

if (file_exists( '/etc/debian_version' )) {
system( '/usr/bin/apt-get -y install libpcre3 libpcre3-dev' );
}
else {
if (file_exists( '/etc/redhat-release' )) {
system( '/usr/bin/yum -y install zlib-devel pcre-devel openssl-devel' );
}
}

system( 'cd /usr/local/src/' );
system( 'rm -rf /usr/local/nginx' );
system( 'rm -rf nginx-*' );
system( '' . '/usr/bin/wget -c http://files.syslint.com/src/nginx/nginx-' . $version . '.tar.gz' );
system( '' . 'tar -xvzf nginx-' . $version . '.tar.gz' );
system( '' . 'cd nginx-' . $version . '/ ;sh /etc/danginx/configure.sh && make && make install' );

if (file_exists( '/usr/local/nginx/sbin/nginx' )) {
echo 'Nginx installation success';
}
else {
echo 'Nginx installation failed , Please contact support';
exit( );
}


if (file_exists( '/etc/init.d/nginx' )) {
echo 'Nginx initscript checking ... ok';
}
else {
if (file_exists( '/etc/debian_version' )) {
system( 'wget -c http://files.syslint.com/src/nginx/nginx.rc.deb.txt' );
system( 'chmod 750 nginx.rc.deb.txt ' );
system( 'mv -f nginx.rc.deb.txt /etc/init.d/nginx ' );
system( '/usr/sbin/update-rc.d -f nginx defaults' );
}
else {
if (file_exists( '/etc/redhat-release' )) {
system( 'wget -c http://files.syslint.com/src/nginx/nginx.rc' );
system( 'chmod 750 nginx.rc ' );
system( 'mv -f nginx.rc /etc/init.d/nginx ' );
system( 'chkconfig --add nginx' );
system( 'chkconfig nginx on' );
}
}
}

system( 'rm -f /usr/local/nginx/conf/nginx.conf' );
system( 'cp -f /etc/danginx/nginx.cont.template /usr/local/nginx/conf/nginx.conf ' );
system( 'touch /usr/local/nginx/conf/vhost.conf' );
system( 'echo "nginx=ON" >> /usr/local/directadmin/data/admin/services.status' );
system( 'sed -i \'s/80/8888/g\' /etc/httpd/conf/httpd.conf' );
system( 'cp -f /etc/httpd/conf/ips.conf /etc/httpd/conf/nginx.conf' );
system( 'sed -i \'s/:80/:8888/g\' /etc/httpd/conf/nginx.conf' );
system( 'sed -i \'s/:80/:8888/g\' /etc/httpd/conf/extra/httpd-vhosts.conf' );
system( 'sed -i \'s/ips.conf/nginx.conf/g\' /etc/httpd/conf/extra/httpd-vhosts.conf' );
system( 'echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue' );
system( 'echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue' );
system( '/usr/local/directadmin/dataskq d200' );
echo 'Wait for rebuild httpd.conf .....';
system( '/etc/init.d/httpd stop' );
system( '/etc/init.d/httpd start' );
system( '/etc/init.d/nginx stop ' );
system( '/etc/init.d/nginx start ' );
return 1;
}


if ($result['status'] == 1000110) {
echo 'Your Danginx license seems suspended. Please activate the license';
return 1;
}


if ($result['status'] == 1000111) {
echo 'Your Danginx licenses seems to be termianted';
return 1;
}

print_r( $result );
echo 'Invalid License / License not found, Please purchase a license.';
?>

_________________
I can decode most of PHP Encryption.You can contact me at phpdecoderon@gmail.com
or Visit http://phpdecoder.wordpress.com/
View user's profile Send private message Send e-mail Visit poster's website
please decpde ioncube guys
www.waraxe.us Forum Index -> PHP script decode requests
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



PCWizardHub - Helping you fix, build, and optimize your PC life
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.083 Seconds