403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/chatme24.com/wwwroot/_installold/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/_installold//install.php
<?php
/* (C) Websplosion LLC, 2001-2021

IMPORTANT: This is a commercial software product
and any kind of using it must agree to the Websplosion's license agreement.
It can be found at http://www.chameleonsocial.com/license.doc

This notice may not be removed from the source code. */
$path = explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
$dir = end($path);
if($dir != '_install') {
    die("incorrect install directory path - please rename \"$dir\" into \"_install\"");
}
if(!isset($g['path']['url_main'])) {
    $g['path']['url_main'] = '../';
}

include_once($g['path']['url_main'] . '_include/lib/db_common.php');

if (extension_loaded('mysqli')) {
    include_once($g['path']['url_main'] . '_include/lib/db_mysqli.php');
} else {
    include_once($g['path']['url_main'] . '_include/lib/db_mysql.php');
}
require_once $g['path']['url_main'].'/_include/current/install.class.php';
require_once $g['path']['url_main'].'/_include/current/common.class.php';
$myinstall=new Class_Install('Chameleon software installation program');
if (isset($_GET['step']))  $myinstall->step =intval($_GET['step']);
if (isset($_GET['ndump'])) $myinstall->ndump=intval($_GET['ndump']);

if ($myinstall->step>2)
{
	include($g['path']['url_main']  .$myinstall->file_config_db);
	#include($myinstall->file_config_path);

}

$next=1;
if ($myinstall->step==-1) $step = "Test chmod";
elseif($myinstall->step == 0) $step = 1;
else $step = $myinstall->step;
$myinstall->html="<h3><strong> Step ".$step."</strong> ".(isset($myinstall->head[$myinstall->step]) ? $myinstall->head[$myinstall->step] : '')."</h3>".$myinstall->html;

if ($myinstall->step == 0) {
$myinstall->html.= $myinstall->html_0;
}

if ($myinstall->step==1)
{
	$myinstall->step = 1;
	$myinstall->error='';



//	 foreach ($myinstall->files_all as $file) {
//                if(!is_writable(dirname(__FILE__) . '/' . $file)) {
//                    $file = str_replace('../', '', $file);
//                    $myinstall->error .= $file . '<br />';
//                }
//            }

	$ok = $myinstall->set_mode();
	if ($ok === false)
	#if (!empty($myinstall->error))
	{
		$myinstall->html.="<p>Please set chmod 0777 to these files and folders and <a href='".$_SERVER['SCRIPT_NAME']."?step=1'>restart installation</a>:</p><p style='overflow: auto; height: 200px;'><strong>";
        $myinstall->html.=str_replace('//', '/', $myinstall->error) . '</strong></p>';
	}
	else
	{
                $step++;
		header('Location:'.$_SERVER['SCRIPT_NAME'].'?step='.$step);
	}
}


if ($myinstall->step==2 and  !isset($_POST['host']))
{
	$next=0;
	$myinstall->html.=$myinstall->html2();
}

if ($myinstall->step==2 and  isset($_POST['host']))
{
	$myinstall->error='';
	if ($myinstall->mysql_version()===false) {
            $next=0;
            $myinstall->html .= $myinstall->html2();
        }
	else $myinstall->html.="<p>Connection Successful.<br>
									 MySql Version: ".$myinstall->version."<br>
									 The config File successfully created.<br></p>";
}

if ($myinstall->step==3)
{
	if ($myinstall->ndump<=count($myinstall->dumps))
	{
		$myinstall->html.= "<p>Wait while the Database is unpacked. <br>
							Processing dump number ".$myinstall->ndump." of ".count($myinstall->dumps).
							" (".$myinstall->dumps[$myinstall->ndump-1].")</p>
                                <br />
                                <br />
                                <img  class='displayed'  src='".$g['path']['url_main']."_frameworks/install/default/images/preload.GIF'>";
							Header("Refresh: 10; URL=".$_SERVER['SCRIPT_NAME']."?step=".$myinstall->step."&ndump=".intval($myinstall->ndump+1));
							$next=0;

							$myinstall->mysql_restore($myinstall->dumps[$myinstall->ndump-1]);

	} else {
        $myinstall->saveVersionToConfig();
        $myinstall->setAdminEmail();
        $myinstall->html.="<p>DB successfully restored from Dump<br></p>";
    }
}


if ($myinstall->step === 'REMOVED' )
{
	$myinstall->html.='<b>Ioncube decoder installation</b><br><br>
			         <form method=post action='.$_SERVER['SCRIPT_NAME'].'?step=5>
			         <table>
			          <tr>
				          <td><p>Please select your OS and processor type:</p></td>
				          <td>
							<select name="os">
								<option value="bsd_x86">BSDi (x86)</option>
								<option value="dar_i386">OS X (i386)</option>
								<option value="dar_ppc">OS X (ppc)</option>
								<option value="dra_x86">DragonFly (x86)</option>
								<option value="fre_4_x86">FreeBSD 4 (x86)</option>
								<option value="fre_6_x86">FreeBSD 6 (x86)</option>
								<option value="fre_AMD64">FreeBSD 6 (AMD64)</option>
								<option value="lin_ppc">Linux (ppc)</option>
								<option value="lin_x86">Linux (x86)</option>
								<option value="lin_x86-64">Linux (x86-64)</option>
								<option value="net_x86">NetBSD (x86)</option>
								<option value="net_x86-64">NetBSD (x86-64)</option>
								<option value="ope_3.7_x86-64">OpenBSD 3.7 (x86-64)</option>
								<option value="ope_3.9_x86">OpenBSD 3.9 (x86)</option>
								<option value="ope_3.9_x86-64">OpenBSD 3.9 (x86-64)</option>
								<option value="sun_sparc">Solaris (sparc)</option>
								<option value="sun_x86">Solaris (x86)</option>
								<option value="win_x86">Windows (x86)</option>
							</select>
						  </td>
			          </tr>
		 	        </table>
					</form>';
}
if ($myinstall->step==4 )
{
    if(!isset($g['path']['url_main'])) {
        $g['path']['url_main'] = '';
    }
	#ini_set('allow_url_fopen', 1);
	#$loader_url = "http://abk-soft.com/ioncube/" . $_POST['os']	. "/";
	#$loader = "ioncube_loader_" . substr($_POST['os'], 0, 3) . "_" . ((float) phpversion()) . "." . (substr($_POST['os'], 0, 3) == "win" ? "dll" : "so");
	#copy($loader_url . $loader, "../ioncube/" . $loader);
    $adminUrl = $g['path']['url_main'].'administration/index.php';

    $cronUrl = Common::urlProtocol() . '://' . $_SERVER['HTTP_HOST'] . (str_replace('/_install/install.php?step=4', '', $_SERVER['REQUEST_URI'])) . '/_cron/cron.php';

	$myinstall->html.='<p>Now please delete the folder "_install" for security reasons. After that you can use your new website.<br />If you have any problems please create a ticket at <a href="http://clients.websplosion.com" target="_blank">http://clients.websplosion.com</a>.<br /><br />Current admin access: <a href="' . $adminUrl . '">administration/index.php</a><br />Login: admin<br />Password: test<br />Please change it at first login.<br /><br />Set the cron jobs:<br />' . $cronUrl . ' - every 10 minutes.<br /><br />For example, command for linux server:<br />wget --spider ' . $cronUrl .' >/dev/null 2>&1<br /><br />You can see how cron jobs are set up in this video:<br /><a target="_blank" href="https://www.youtube.com/watch?v=BVaFnGI0ex0&t=142">https://www.youtube.com/watch?v=BVaFnGI0ex0&t=142</a><br /><br /></p>';
}
if($myinstall->step == 5) {
   $myinstall->html .= '<p>Please delete or rename the "_install" folder for security reasons before using the website.</p> ';
}
echo $myinstall->header;
echo $myinstall->html;
$ns='';
if ($myinstall->step>=4) {
   $text = ($myinstall->step == 5) ? 'Try Again' : 'Open website';
       $ns='</div></div><div class="foot">
            <span class="btn_color color1 fl_right"><a href="'.$g['path']['url_main'].'index.php">'.$text.'</a></span>
        </div>';
}
elseif($myinstall->step != 2 || isset($_POST['host']) && empty($myinstall->error)) $ns='</div></div><div class="foot">
            <span class="btn_color color1 fl_right"><a href='.$_SERVER['SCRIPT_NAME'].'?step='.intval($myinstall->step+1).'>Next</a> </div></div>';


if ($next==1)
    echo $ns;
echo $myinstall->footer;

Youez - 2016 - github.com/yon3zu
LinuXploit