| 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/update-chameleon-5.0-5.1/m/ |
Upload File : |
<?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. */
//$area = "public";
include("./_include/core/pony_start.php");
$cmd = get_param('cmd');
$currentSocial='';
if ($cmd == 'fb_login') {
$currentSocial='facebook';
}elseif($cmd == 'gl_login') {
$currentSocial='google_plus';
}elseif($cmd == 'ln_login') {
$currentSocial='linkedin';
}elseif($cmd == 'vk_login') {
$currentSocial='vk';
}elseif($cmd == 'tw_login') {
$currentSocial='twitter';
}
if($currentSocial!=''){
Social::setActive($currentSocial);
Social::login();
}
if(guid()) {
$redirect = get_session('social_login_page_from', Common::getHomePage());
Social::connect($redirect);
}
$g['to_head'][] = '<link rel="stylesheet" href="'.$g['tmpl']['url_tmpl_mobile'].'css/main.css" type="text/css" media="all"/>';
$g['options']['no_loginform'] = 'Y';
$l[$p] = $l['join.php'];
/*
$cmd = get_param('cmd');
if ($cmd == 'fb_login') {
Social::login();
}
*/
$tmpl = 'join.html';
$tmplRegister = Common::getOption('register_page_template', 'template_options');
if($tmplRegister) {
$tmpl = $tmplRegister;
}
$responseAjax = get_param('ajax');
if($responseAjax) {
$responseData = false;
if (in_array($cmd, array('states', 'cities'))) {
$id = get_param('select_id');
$method = 'list' . $cmd;
$responseData['list'] = Common::$method($id);
} elseif ($cmd == 'register') {
$page = new CJoinForm('join', null);
$page->init();
$responseData = $page->responseData;
} else {
$page = new CJoinPage('login', null);
$page->action(false);
$responseData = $page->message;
}
die(get_json_encode($responseData));
}
$page = new CJoinPage("", $g['tmpl']['dir_tmpl_mobile'] . $tmpl);
$header = new CHeader("header", $g['tmpl']['dir_tmpl_mobile'] . "_header.html");
$page->add($header);
$footer = new CFooter("footer", $g['tmpl']['dir_tmpl_mobile'] . "_footer.html");
$page->add($footer);
$register = new CJoinForm("join", null);
$page->add($register);
include("./_include/core/main_close.php");