Esempio n. 1
0
require_once LIB_PATH . 'osclass/helpers/hPlugins.php';
require_once LIB_PATH . 'osclass/helpers/hTranslations.php';
require_once LIB_PATH . 'osclass/compatibility.php';
require_once LIB_PATH . 'osclass/default-constants.php';
require_once LIB_PATH . 'osclass/formatting.php';
require_once LIB_PATH . 'osclass/install-functions.php';
require_once LIB_PATH . 'osclass/utils.php';
require_once LIB_PATH . 'osclass/core/Translation.php';
require_once LIB_PATH . 'osclass/classes/Plugins.php';
Params::init();
if (is_osclass_installed()) {
    die;
}
$json_message = array();
$json_message['status'] = true;
$result = basic_info();
$json_message['email_status'] = $result['email_status'];
$json_message['password'] = $result['s_password'];
if ($_POST['skip-location-input'] == 0 && $_POST['country-input'] != 'skip') {
    $msg = install_locations();
    $json_message['status'] = $msg;
}
echo json_encode($json_message);
function basic_info()
{
    require_once LIB_PATH . 'osclass/model/Admin.php';
    require_once LIB_PATH . 'osclass/helpers/hSecurity.php';
    $admin = Params::getParam('s_name');
    if ($admin == '') {
        $admin = 'admin';
    }
Esempio n. 2
0
        $html .= "<tr><td class='key'>Active</td><td>{$activeSemesters}</td></tr>";
        $html .= "</table></td><td style='width: 40%; vertical-align: top'><table>";
        $html .= "<tr><td class='key'>Enrollment</td><td>" . rosterProp($member, "Enrollment") . "</td></tr>";
        if ($uber || hasPosition($USER, "Treasurer")) {
            $html .= "<tr><td class='key'>Balance</td><td>" . rosterProp($member, "Balance") . "</td></tr>";
            $html .= "<tr><td class='key'>Dues</td><td>" . rosterProp($member, "Dues") . "</td></tr>";
            $html .= "<tr><td class='key'>Tie</td><td>" . rosterProp($member, "Tie") . "</td></tr>";
        }
        if ($uber) {
            $html .= "<tr><td class='key'>Gigs</td><td>" . rosterProp($member, "Gigs") . "</td></tr>";
            $html .= "<tr><td class='key'>Score</td><td>" . rosterProp($member, "Score") . "</td></tr>";
            $html .= "<tr><td class='key'>Actions</td><td><button class='btn action' onclick='chgusr(\"{$person}\")'>Log in as</button><button class='btn action' style='color: red' onclick='delusr(\"{$person}\")'>Delete</button></td></tr>";
        }
    }
    $html .= "</table></td></tr></table>";
    return $html;
}
echo "<div class='section'>" . basic_info($email) . "</div>";
echo "<hr>";
if ($officer) {
    echo "<table><tr>";
    echo "<td class='tab'><a href='#' class='info_toggle' data-tab='details'>Details</a></td>";
    echo "<td class='tab'><a href='#' class='info_toggle' data-tab='money'>Money</a></td>";
    echo "<td class='tab'><a href='#' class='info_toggle' data-tab='attendance'>Attendance</a></td>";
    echo "<td class='tab'><a href='#' class='info_toggle' data-tab='semesters'>Semesters</a></td>";
    echo "<td class='tab'><a href='#' class='info_toggle' data-tab='tie'>Tie</a></td>";
    echo "</tr></table><div id='tabbox'></div>";
}
?>

Esempio n. 3
0
error_reporting(E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_PARSE);
define('ABS_PATH', dirname(dirname(dirname(__FILE__))) . '/');
define('LIB_PATH', ABS_PATH . 'oc-includes/');
require_once ABS_PATH . 'config.php';
require_once LIB_PATH . 'osclass/db.php';
require_once LIB_PATH . 'osclass/classes/DAO.php';
require_once LIB_PATH . 'osclass/helpers/hDatabaseInfo.php';
require_once LIB_PATH . 'osclass/install-functions.php';
require_once LIB_PATH . 'osclass/formatting.php';
require_once LIB_PATH . 'osclass/compatibility.php';
require_once LIB_PATH . 'osclass/utils.php';
$_POST = add_slashes_extended($_POST);
if (is_osclass_installed()) {
    die;
}
basic_info();
if ($_POST['skip-location-h'] == 0) {
    install_locations();
}
function basic_info()
{
    require_once ABS_PATH . 'oc-includes/osclass/model/Admin.php';
    require_once ABS_PATH . 'oc-includes/osclass/model/Preference.php';
    Admin::newInstance()->insert(array('s_name' => 'Administrator', 's_username' => 'admin', 's_password' => sha1('admin'), 's_email' => $_POST['email']));
    $mPreference = Preference::newInstance();
    $mPreference->insert(array('s_section' => 'osclass', 's_name' => 'pageTitle', 's_value' => $_POST['webtitle'], 'e_type' => 'STRING'));
    $mPreference->insert(array('s_section' => 'osclass', 's_name' => 'contactEmail', 's_value' => $_POST['email'], 'e_type' => 'STRING'));
}
function location_international()
{
    $manager_country = Country::newInstance();