Location: PHPKode > projects > XplainCart > xplaincart-1.0/admin/login.php
<?php
require_once '../../../mainfile.php';
require_once XOOPS_ROOT_PATH.'/include/cp_header.php';
require_once '../library/define.php';
require_once '../library/init_class.php';
require_once 'library/admin_func_class.php';
class login_class{
	function login_display(){
		include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
		include_once XOOPS_ROOT_PATH.'/class/template.php';
		$xoopsTpl=new XoopsTpl();
		$init=new init_class;
		//$shopConfig=$init->getShopConfig();
		$admin_func=new admin_func_class;
		$errorMessage = '&nbsp;';
		if (isset($_POST['txtUserName'])) {
			$result = $admin_func->doLogin();
			if ($result != '') {
			$errorMessage = $result;
			}
		}
		$xoopsTpl->assign('css_dir',WEB_ROOT.'admin/include/admin.css');
		$xoopsTpl->assign('$errorMessage',$errorMessage);
		$xoopsTpl->assign('plaincart',WEB_ROOT.'index.php');
		$xoopsTpl->display('db:admin_login.html');
	}
}
//$xoopsOption['template_main']='admin_login.html';
xoops_cp_header();
$login=new login_class;
$login->login_display();
xoops_cp_footer();
?>
Return current item: XplainCart