PHPOS Web Operating system
	MIT License
	(c) 2013 Marcin Szczyglinski
	szczyglis83@gmail.com
	GitHUB: https://github.com/phpos/
	File version: 1.0.0, 2013.10.08
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
echo $layout->title(txt('cp_system_info_server_title'), 'icon.png');
echo $layout->txtdesc(txt('cp_system_info_server_desc'));
$form = new phpos_forms();
echo $form->form_start('sysinfo', helper_ajax(''), array('app_params' => ''));
echo $layout->column('50%');
$form->title(txt('cp_system_info_server_form_basic_title'), null, ICONS . 'system_info/server_icon.png');
$form->label(txt('cp_system_info_server_form_ip_title'), $_SERVER['SERVER_ADDR'], '');
$form->label(txt('cp_system_info_server_form_os_title'), PHP_OS, '');
$form->label(txt('cp_system_info_server_form_name_title'), $_SERVER['SERVER_NAME'], '');
$form->label(txt('cp_system_info_server_form_soft_title'), $_SERVER['SERVER_SOFTWARE'], '');
$form->label(txt('cp_system_info_server_form_protocol_title'), $_SERVER['SERVER_PROTOCOL'], '');
echo $form->render();
echo $layout->end('column');
echo $layout->column('50%');
echo $form->render();
echo $layout->end('column');
echo $layout->clr();
echo $form->form_end();
Exemplo n.º 2
0
	PHPOS Web Operating system
	MIT License
	(c) 2013 Marcin Szczyglinski
	szczyglis83@gmail.com
	GitHUB: https://github.com/phpos/
	File version: 1.0.0, 2013.10.08
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
$form = new phpos_forms();
$form->form_start('account_info', '', '');
$form->title(txt('usr_account_info'), '', ICONS . 'tip.png');
$form->label('ID', $usr->get_id_user(), '');
$form->label('Login', $usr->get_user_login(), '');
switch ($usr->get_is_active()) {
    case 1:
        $active_txt = txt('yes');
        break;
    case 0:
        $active_txt = txt('no');
        break;
}
$form->label(txt('active'), $active_txt, '');
$form->label(txt('created_at'), date('d.m.Y H:i:s', $usr->get_created_at()), '');
if ($usr->get_last_login() != 0) {
    $last_login_txt = date('d.m.Y H:i:s', $usr->get_last_login());
} else {
    $last_login_txt = txt('never');
Exemplo n.º 3
0
$user_id = $my_app->get_param('user_id');
if (!empty($user_id)) {
    $usr = new phpos_users();
    if (is_root() || is_admin()) {
        $usr->set_id_user($user_id);
        $usr->get_user_by_id();
        echo helper_result('update_user');
        echo $layout->title(txt('edit_user'), 'icon.png');
        echo $layout->txtdesc(txt('dsc_users_edit_list'));
        $form = new phpos_forms();
        echo $form->form_start('update_user', helper_ajax('section.edit_account.php'), array('app_params' => ''));
        $form->reload_after_submit(array('nowy'));
        $form->input('hidden', 'action', '', '', 'update_user');
        echo $layout->column('50%');
        $form->title(txt('user_login_data'), txt('all_fields_req'), ICONS . 'accounts/toolbar_edit.png');
        $form->label('Login', $usr->get_user_login(), '');
        //$form->condition('not_null', true , 'Password is empty');
        //$form->condition('min', 6, 'Password must have min 6 chars');
        //$form->condition('max', 30, 'Password can have max 30 chars');
        $form->condition('match', 'user_new_pass2', txt('pass_not_match'));
        $form->input('password', 'user_new_pass', '<span style=color:#7e1414>' . txt('new_pass') . '</span>', txt('dsc_users_account_pass'), '');
        //$form->condition('not_null', true , 'Password confirmation is empty');
        $form->input('password', 'user_new_pass2', '<span style=color:#7e1414>' . txt('new_pass_c') . '</span>', txt('dsc_users_account_pass_c'), '');
        $form->input('text', 'user_new_email', 'Email', txt('dsc_users_account_email'), $usr->get_user_email());
        echo $form->render();
        echo $layout->end('column');
        echo $layout->column('50%');
        $form->title(txt('usr_account_params'), '', ICONS . 'small_options.png');
        $items = array('1' => txt('yes'), '0' => txt('no'));
        $form->radio('user_new_active', txt('active'), txt('dsc_users_account_active'), $items, $usr->get_is_active());
        $items = array('1' => txt('user_user'), '2' => txt('user_admin'));
Exemplo n.º 4
0
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
$link_param = $my_app->get_param('link_param');
$input_title = txt('folder_name');
$button = txt('btn_create');
$form_id = 'new_folder';
$default_value = '';
$succ_msg = txt('created');
$fs = $my_app->get_param('fs');
$success_code = winclose(WIN_ID) . $monit_success;
winset('title', txt('fileinfo_title'));
winset('width', '600');
winset('height', '400');
wincenter();
$app = new phpos_app();
$app->set_app_id($link_param);
$app->load_config();
$form = new phpos_forms();
$html .= $form->form_start($form_id, helper_post_outside('null', '', $after_reload), array('app_params' => ''));
$form->label(txt('fileinfo_name'), base64_decode($my_app->get_param('file_name')));
$form->label(txt('fileinfo_dir'), base64_decode($my_app->get_param('dir_name')));
$form->label(txt('fileinfo_fs'), $fs);
$form->label(txt('fileinfo_type'), base64_decode($my_app->get_param('file_type')));
$form->label(txt('fileinfo_created'), date(DATE_FORMAT, base64_decode($my_app->get_param('file_created'))));
$form->label(txt('fileinfo_modified'), date(DATE_FORMAT, base64_decode($my_app->get_param('file_modified'))));
$form->label(txt('fileinfo_chmod'), file_chmod(base64_decode($my_app->get_param('file_chmod'))));
$html .= $form->render();
$html .= $form->form_end();
	File version: 1.0.0, 2013.10.08
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
echo $layout->title(txt('cp_system_info_phpos_title'), 'icon.png');
echo $layout->txtdesc(txt('cp_system_info_phpos_desc'));
$form = new phpos_forms();
echo $form->form_start('sysinfo', helper_ajax(''), array('app_params' => ''));
echo $layout->column('50%');
$form->title(txt('cp_system_info_phpos_form_title_version'), null, ICONS . 'system_info/phpos_icon.png');
echo $form->render();
echo $layout->txtdesc(txt('cp_system_info_phpos_version_dsc'));
$form->label(txt('cp_system_info_phpos_form_version'), PHPOS_VERSION, '');
$form->label(txt('cp_system_info_phpos_form_version_name'), PHPOS_VERSION_NAME, '');
$form->label(txt('cp_system_info_phpos_form_build'), PHPOS_BUILD, '');
$form->title(txt('cp_system_info_phpos_form_title_time'), null, ICONS . 'clock.png');
$form->label(txt('cp_system_info_phpos_form_time_install'), date('d.m.Y H:i:s', intval(globalconfig('install_time'))), '');
$form->label(txt('cp_system_info_phpos_form_time_update'), date('d.m.Y H:i:s', intval(globalconfig('update_time'))), '');
$form->title(txt('cp_system_info_phpos_form_title_paths'), null, ICONS . 'folder.png');
echo $form->render();
echo $layout->txtdesc(txt('cp_system_info_phpos_paths_dsc'));
$form->label('PHPOS_DIR', PHPOS_DIR, '');
$form->label('PHPOS_URL', PHPOS_URL, '');
$form->label('PHPOS_WEBROOT_DIR', PHPOS_WEBROOT_DIR, '');
$form->label('PHPOS_WEBROOT_URL', PHPOS_WEBROOT_URL, '');
echo $form->render();
echo $layout->end('column');
echo $layout->column('50%');
Exemplo n.º 6
0
$success_code = winclose(WIN_ID) . $monit_success;
/*
**************************
*/
$app = new phpos_app();
$app->set_app_id($link_param);
$app->load_config();
$after_reload = $my_app->get_param('after_reload');
$html .= $layout->subtitle(txt('shortcuts_share_title'), MY_RESOURCES_URL . 'shared.png');
$html .= $layout->txtdesc(txt('shortcuts_share_desc'));
$html .= $layout->subtitle(txt('shortcuts_share_id_title'), MY_RESOURCES_URL . 'folder.png');
$form = new phpos_forms();
$form->onsuccess($success_code);
$html .= $form->form_start($form_id, helper_ajax('shareAction.php'), array('app_params' => ''));
$form->reload_after_submit(array($after_reload));
$form->status();
$form->label(txt('shortcuts_share_form_folder') . ': ', $shared_id, txt('shortcuts_share_form_folder_desc'));
$html .= $form->render();
$html .= $layout->subtitle(txt('shortcuts_share_network_name'), MY_RESOURCES_URL . 'shared.png');
$html .= $layout->txtdesc(txt('shortcuts_share_network_name_desc'));
$form->condition('not_null', true, txt('name_empty'));
$form->input('text', 'new_folder_name', txt('shortcuts_share_form_name'), txt('shortcuts_share_network_name_tip'), $default_value);
$form->input('text', 'new_folder_desc', txt('shortcuts_share_form_desc'), txt('shortcuts_share_form_desc_desc'), $default_value);
$html .= $form->render();
$html .= $layout->subtitle(txt('shortcuts_share_access_title'), MY_RESOURCES_URL . 'perms.png');
$items = array('1' => txt('yes'), '0' => txt('no'));
$form->radio('new_folder_readonly', txt('shortcuts_share_form_readonly'), txt('shortcuts_share_form_readonly_desc'), $items, '1');
$html .= $form->render();
$form->submit_btn($button);
$next_button = $form->render();
$html .= $form->form_end();
Exemplo n.º 7
0
**********************************

	PHPOS Web Operating system
	MIT License
	(c) 2013 Marcin Szczyglinski
	szczyglis83@gmail.com
	GitHUB: https://github.com/phpos/
	File version: 1.0.0, 2013.10.08
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
$form = new phpos_forms();
$form->form_start('account_info', '', '');
$form->input('title', '', 'Account information', '', '');
$form->label('ID', $usr->get_id_user(), '');
$form->label('Login', $usr->get_user_login(), '');
$form->label('Active', $usr->get_is_active(), '');
$form->label('Account created', date('d.m.Y H:i:s', $usr->get_created_at()), '');
$form->label('Last login', $usr->get_last_login());
$form->label('Last activity', $usr->get_last_activity(), '');
$form->label('Email', $usr->get_user_email(), '');
if (is_dir(PHPOS_WEBROOT_DIR . 'home/' . $usr->get_home_dir_hash())) {
    $form->label('Home folder', '<a href="javascript:void(0);" onclick="phpos.windowCreate(\'Explorer\',\'explorer2\', \'app_id:explorer2\', \'fs:local_files,dir_id:' . PHPOS_WEBROOT_DIR . 'home/' . $usr->get_home_dir_hash() . '\');">home/' . $usr->get_home_dir_hash() . '</a>', '');
} else {
    $form->label('Home folder', 'No homedir (create)', '');
}
echo $form->render();
echo $form->form_end();
	File version: 1.0.0, 2013.10.08
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
echo $layout->title(txt('cp_system_info_db_title'), 'icon.png');
echo $layout->txtdesc(txt('cp_system_info_db_desc'));
$form = new phpos_forms();
echo $form->form_start('sysinfo', helper_ajax(''), array('app_params' => ''));
echo $layout->column('50%');
$form->title(txt('cp_system_info_db_adapter_title'), null, ICONS . 'system_info/db_icon.png');
echo $form->render();
echo $layout->txtdesc(txt('cp_system_info_db_adapter_desc'));
$form->label(txt('cp_system_info_db_form_adapter_title'), $db_adapter, '');
echo $form->render();
echo $layout->end('column');
echo $layout->column('50%');
$form->title(txt('cp_system_info_db_auth_title'), null, ICONS . 'auth_key.png');
echo $form->render();
echo $layout->txtdesc(txt('cp_system_info_db_auth_desc'));
$form->label(txt('cp_system_info_db_form_host_title'), $db_host, '');
$form->label(txt('cp_system_info_db_form_dbname_title'), $db_dbname, '');
$form->label(txt('cp_system_info_db_form_user_title'), $db_login, '');
$form->label(txt('cp_system_info_db_form_pass_title'), txt('cp_system_info_db_form_pass_hidden'), '');
$form->label(txt('cp_system_info_db_form_prefix_title'), $db_prefix, '');
echo $form->render();
echo $layout->end('column');
echo $layout->clr();
echo $form->form_end();