helper_result('my_update_user', 'error', txt('pass_old_need')); } } $new_usr->set_user_email($tmp_email); //if($tmp_home != 1) $new_usr->set_nohome(); if ($error != 1) { if ($new_usr->update()) { /* $new_cfg = new phpos_config('no_get'); $new_cfg->set_id_user($user_id); $new_cfg->update_user('lang', $tmp_lang); //$new_cfg->update_user('wallpaper', globalconfig('wallpaper')); */ helper_result('my_update_user', 'ok', txt('updated')); helper_result('my_update_user_result', 'result', 'success'); helper_result('my_update_user_result', 'result', 'error'); } else { helper_result('my_update_user_result', 'result', 'error'); helper_result('my_update_user', 'error', txt('error')); } } } } $_POST['action'] = null; } } } $my_app->set_param('selected_wallpaper_id', myconfig('wallpaper')); cache_param('selected_wallpaper_id'); $my_app->set_param('selected_wallpaper_type', myconfig('wallpaper_type')); cache_param('selected_wallpaper_type');
$items = array('1' => txt('user_user'), '2' => txt('user_admin')); $form->radio('user_new_type', txt('type'), txt('dsc_users_account_type'), $items, '1'); /* $items = array('1' => txt('create_home')); $form->checkbox('user_new_homedir', txt('home_dir'), txt('home_dir'), $items, '1'); */ $form->input('hidden', 'user_new_homedir', '', '', '1'); $languages = new phpos_languages(); $langs_array = $languages->get_lang_list(); $lang_items = array(); foreach ($langs_array as $lang_id) { $lang_data = $languages->get_lang_info($lang_id); $lang_name = $lang_data['eng_name'] . ' (' . $lang_data['local_name'] . ')'; $lang_items[$lang_id] = $lang_name; } $form->select('user_new_lang', txt('language'), txt('dsc_users_account_lang'), $lang_items, myconfig('lang')); $form->status(); $form->submit('', txt('btn_create'), 'edit_add', 'right'); //$form->button('', 'button', 'edit_add'); echo $form->render(); echo $layout->end('column'); echo $layout->clr(); echo $form->form_end(); } else { echo $layout->title(txt('usr_new'), 'icon.png'); echo $layout->column('50%'); echo helper_result('new_user'); echo '<img src="' . MY_RESOURCES_URL . 'user_added_img.png" style="width:100px;padding-left:50px"/>'; echo $layout->end('column'); echo $layout->column('50%'); $result = helper_result('new_user_result');
?> "><span><?php echo txt('sys_info'); ?> </span></div> <?php } ?> <div class="startmenu_right_item"> <a href="<?php echo PHPOS_ONLINE; ?> ?from=phpos_client&lang=<?php echo myconfig('lang'); ?> " target="_blank"><span><?php echo txt('start_phpos_online'); ?> </span></a> / <a href="<?php echo PHPOS_GITHUB; ?> " target="_blank"><span>GitHUB</span></a></div> <?php if (is_root() || is_admin()) { ?> <div class="startmenu_right_item" onclick="<?php echo winopen(txt('updates'), 'app', 'app_id:updater@index', '');
function updater() { ' . $link . ' } </script>'; msg::updater($updater_message); } ?> <script> $(document).ready(function() { $('#phpos_desktop_logo').delay(1500).show('fast'); $('#phpos_desktop_logo').fadeIn('slow').delay(5000).fadeOut('slow'); $.wallpaper({ file: "<?php $my_wallpaper_type = myconfig('wallpaper_type'); $wallpaper = new phpos_wallpapers(); if ($my_wallpaper_type == 'user') { echo $wallpaper->get_user_url(myconfig('wallpaper')); } else { echo $wallpaper->get_global_url(myconfig('wallpaper')); } //echo PHPOS_WEBROOT_URL.myconfig('wallpaper'); ?> " }); phpos.windowDesktopCreate('PHPOS DESKTOP', 'app', 'app_id:explorer@desktop, parent_id:0', 'fs:db_mysql'); }); </script>
********************************** */ if (!defined('PHPOS')) { die; } $tray['id'] = 'updater'; $tray['access_level'] = 2; $tray['version'] = 1.0; $tray['load_only_with_app'] = false; $tray['app_id'] = null; $tray['use_custom_icons'] = true; $tray['use_lang'] = true; $tray['title'] = txt('updater_tray_title'); $tmp_context_menu = array(); $www_link = 'window.open(\'' . PHPOS_ONLINE . '?from_updater=1&lang=' . myconfig('lang') . '\', \'_blank\'); return false;'; $github_link = 'window.open(\'' . PHPOS_GITHUB . '\', \'_blank\'); return false;'; $tmp_context_menu[] = 'upd1::<b>' . txt('updater_tray_launch_updater') . '</b>::' . helper::win(txt('updater_tray_title'), 'app', 'app_id:updater') . '::time'; $tmp_context_menu[] = '---'; $tmp_context_menu[] = 'www::' . txt('updater_tray_visit_www') . '::' . $www_link . '::arrow_back'; $tmp_context_menu[] = 'git::' . txt('updater_tray_visit_git') . '::' . $github_link . '::arrow_back'; $context_menu_style = array(); global $updater_message; $conn_msg['online'] = '<span style=\'font-weight:bold; color: #257128\'>' . txt('updater_tray_online') . '</span>'; $conn_msg['offline'] = '<span style=\'font-weight:bold; color: #7f211d\'>' . txt('updater_tray_offline') . '</span>'; $conn_msg['disabled'] = '<span style=\'font-weight:bold; color: #384e92\'>' . txt('updater_tray_disabled') . '</span>'; $updater = new phpos_updater(); $tray['icons'] = array(ICONS . 'tray/updater.png'); $timeout = 3; $cfg_timeout = globalconfig('app_updater_autoupdate_timeout'); if (!empty($cfg_timeout) && $cfg_timeout != 0) {