}
// get user information
$user = get_user_info($uid);
if ($user === false) {
    redirect_header($xoonips_admin['mypage_url'], 3, _AM_XOONIPS_MSG_ILLACCESS);
    exit;
}
if ($uid != 0 && $user['xoops']['level'] == 0) {
    // needs activate
    include 'actions/maintenance_account_aconfirm.php';
    exit;
}
// labels
$userinfo_labels = array('uname' => _US_NICKNAME, 'name' => _US_REALNAME, 'email' => _US_EMAIL, 'user_viewmail' => _US_ALLOWVIEWEMAIL, 'url' => _US_WEBSITE, 'groups' => _US_GROUPS, 'position' => _AM_XOONIPS_LABEL_POSITION, 'division' => _AM_XOONIPS_LABEL_DIVISION, 'company_name' => _AM_XOONIPS_LABEL_COMPANY_NAME, 'tel' => _AM_XOONIPS_LABEL_TEL, 'fax' => _AM_XOONIPS_LABEL_FAX, 'address' => _AM_XOONIPS_LABEL_ADDRESS, 'country' => _AM_XOONIPS_LABEL_COUNTRY, 'zipcode' => _AM_XOONIPS_LABEL_ZIPCODE, 'timezone' => _US_TIMEZONE, 'user_intrest' => _US_INTEREST, 'appeal' => _AM_XOONIPS_LABEL_APPEAL, 'user_sig' => _US_SIGNATURE, 'attachsig' => _US_SHOWSIG, 'pass' => _US_PASSWORD, 'pass2' => _US_VERIFYPASS, 'notice_mail' => _AM_XOONIPS_LABEL_NOTICE_MAIL, 'private_item_number_limit' => _AM_XOONIPS_LABEL_PRIVATE_ITEM_NUMBER_LIMIT, 'private_index_number_limit' => _AM_XOONIPS_LABEL_PRIVATE_INDEX_NUMBER_LIMIT, 'private_item_storage_limit' => _AM_XOONIPS_LABEL_PRIVATE_ITEM_STORAGE_LIMIT, 'umode' => _US_CDISPLAYMODE, 'uorder' => _US_CSORTORDER, 'rank' => _US_RANK, 'notify_method' => _NOT_NOTIFYMETHOD, 'notify_mode' => _NOT_NOTIFYMODE, 'user_mailok' => _US_MAILOK, 'submit' => _AM_XOONIPS_LABEL_UPDATE);
// requirements
$userinfo_requirements = get_requirements($uid);
// validate
$validate = array();
foreach ($userinfo_requirements as $key) {
    $validate[] = array('name' => $key, 'message' => sprintf(_FORM_ENTER, $userinfo_labels[$key]));
}
// breadcrumbs
$breadcrumbs = array(array('type' => 'top', 'label' => _AM_XOONIPS_TITLE, 'url' => $xoonips_admin['admin_url'] . '/'), array('type' => 'link', 'label' => _AM_XOONIPS_MAINTENANCE_TITLE, 'url' => $xoonips_admin['myfile_url']), array('type' => 'link', 'label' => _AM_XOONIPS_MAINTENANCE_ACCOUNT_TITLE, 'url' => $xoonips_admin['mypage_url']), array('type' => 'label', 'label' => $title, 'url' => ''));
// token ticket
require_once '../class/base/gtickets.php';
$ticket_area = 'xoonips_admin_maintenance_account_edit';
$token_ticket = $xoopsGTicket->getTicketHtml(__LINE__, 1800, $ticket_area);
// templates
require_once '../class/base/pattemplate.class.php';
$tmpl = new PatTemplate();
$tmpl->setBaseDir('templates');
    }
    ?>
	
			</div><!--- course_img_featured -->
			<div class="course_title_featured col-md-8">
			<h1><?php 
    the_title();
    ?>
</h1>
				<p>
					<?php 
    get_hours('<b>Horas:</b>', 'horas');
    ?>
<br>
					<?php 
    get_requirements('<b>Requisitos:</b>');
    ?>
	
				</p>
			</div><!--- course_title_featured -->
		</div>
	</div>
		<div class="row wpc_course_content">
			<div class="container">
				<div class="course_content col-md-8">
					<?php 
    the_content();
    ?>
				</div>
				<div class="course_sidebar col-md-4">
				
Beispiel #3
0
require_once LIB_PATH . 'osclass/model/Preference.php';
require_once LIB_PATH . 'osclass/helpers/hPreference.php';
require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php';
require_once LIB_PATH . 'osclass/helpers/hErrors.php';
require_once LIB_PATH . 'osclass/core/Session.php';
require_once LIB_PATH . 'osclass/helpers/hDefines.php';
require_once LIB_PATH . 'osclass/helpers/hLocale.php';
require_once LIB_PATH . 'osclass/install-functions.php';
isset($_REQUEST['step']) ? $step = (int) $_REQUEST['step'] : ($step = '1');
if (is_osclass_installed()) {
    $message = 'You appear to have already installed OSClass. To reinstall please clear your old database tables first.';
    osc_die('OSClass &raquo; Error', $message);
}
switch ($step) {
    case 1:
        $requirements = get_requirements();
        $error = check_requirements($requirements);
        break;
    case 2:
        if (isset($_REQUEST['save_stats'])) {
            setcookie('osclass_save_stats', 1);
            header('Location: ' . get_absolute_url() . 'oc-includes/osclass/install.php?step=2');
        }
        break;
    case 3:
        if (isset($_POST['dbname'])) {
            $error = oc_install();
        }
        break;
    case 5:
        break;