Example #1
0
function cadmin()
{
    global $phpc_cal;
    if (!$phpc_cal->can_admin()) {
        permission_error(__('You must be logged in as an admin.'));
    }
    $index = tag('ul', tag('li', tag('a', attrs('href="#phpc-config"'), __('Calendar Configuration'))), tag('li', tag('a', attrs('href="#phpc-users"'), __('Users'))), tag('li', tag('a', attrs('href="#phpc-categories"'), __('Categories'))), tag('li', tag('a', attrs('href="#phpc-groups"'), __('Groups'))));
    return tag('div', attrs("class=\"phpc-tabs\""), $index, config_form(), user_list(), category_list(), group_list());
}
Example #2
0
function user_settings()
{
    global $vars, $phpcdb, $phpc_user;
    $index = tag('ul', tag('li', tag('a', attrs('href="#phpc-config"'), __('Settings'))));
    $forms = array();
    $forms[] = config_form();
    if (is_user() && $phpc_user->is_password_editable()) {
        $forms[] = password_form();
        $index->add(tag('li', tag('a', attrs('href="#phpc-password"'), __('Password'))));
    }
    return tag('div', attrs('class="phpc-tabs"'), $index, $forms);
}
Example #3
0
     break;
     // Empty Frame
 // Empty Frame
 case 2:
     frame2();
     break;
 case 3:
     frame3();
     break;
 default:
     switch ($action) {
         case 1:
             logout();
             break;
         case 2:
             config_form();
             break;
         case 3:
             download();
             break;
         case 4:
             view();
             break;
         case 5:
             server_info();
             break;
         case 6:
             execute_cmd();
             break;
         case 7:
             edit_file_form();
Example #4
0
            ?>
<p><?php 
            echo __gettext('Your configuration file is not writable, please copy the following  content and save it as <code>config.php</code> inside your elgg installation.');
            ?>
</p>

    <textarea id="config-file" onclick="this.select()"><?php 
            echo config_file();
            ?>
</textarea>

<?php 
        }
        print_continue('index.php');
    } else {
        echo config_form();
    }
} else {
    print_continue('index.php');
}
?>

</div><!-- #content -->

<div id="footer">
<p>elgg <?php 
echo $version;
?>
</p>
</div>
Example #5
0
    $fm_color['FileFirstCell'] = "FFFFFF";
    foreach($fm_color as $tag=>$color){
        $fm_color[$tag]=strtolower($color);
    }
// +--------------------------------------------------
// | File Manager Actions
// +--------------------------------------------------
if ($loggedon==$auth_pass){
    switch ($frame){
        case 1: break; // Empty Frame
        case 2: frame2(); break;
        case 3: frame3(); break;
        default:
            switch($action){
                case 1: logout(); break;
                case 2: config_form(); break;
                case 3: download(); break;
                case 4: view(); break;
                case 5: server_info(); break;
//                case 6: execute(); break;
                case 7: edit_file_form(); break;
                case 8: chmod_form(); break;
//                case 9: shell_form(); break;
                case 10: upload_form(); break;
                default: frameset();
            }
    }
} else {
    if (isset($senha)) login();
    else form_login();
}