예제 #1
0
<?php

/*
**********************************

	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;
}
$app_toolbar = array();
$app_toolbar[] = array('id' => 'system_info_phpos', 'title' => txt('cp_system_info_phpos_title'), 'link' => helper_reload(array('section' => 'system_info_phpos')), 'icon' => 'system_info/phpos_icon.png', 'tip' => txt('cp_system_info_phpos_desc'));
$app_toolbar[] = array('id' => 'system_info_php', 'title' => txt('cp_system_info_php_title'), 'link' => helper_reload(array('section' => 'system_info_php')), 'icon' => 'system_info/php_icon.png', 'tip' => txt('cp_system_info_php_desc'));
$app_toolbar[] = array('id' => 'system_info_db', 'title' => txt('cp_system_info_db_title'), 'link' => helper_reload(array('section' => 'system_info_db')), 'icon' => 'system_info/db_icon.png', 'tip' => txt('cp_system_info_db_desc'));
$app_toolbar[] = array('id' => 'system_info_server', 'title' => txt('cp_system_info_server_title'), 'link' => helper_reload(array('section' => 'system_info_server')), 'icon' => 'system_info/server_icon.png', 'tip' => txt('cp_system_info_server_desc'));
$app_toolbar[] = array('id' => 'system_info_key', 'title' => txt('cp_system_info_key_title'), 'link' => helper_reload(array('section' => 'system_info_key')), 'icon' => 'system_info/key_icon.png', 'tip' => txt('cp_system_info_key_desc'));
예제 #2
0
    echo $layout->txtdesc(txt('dsc_cp_groups_users_out'));
    // usrs in group
    $users_ids = $group->get_users_out_group();
    $c = count($users_ids);
    if ($c != 0) {
        echo $layout->tbl_start();
        echo $layout->head(array('<img src="' . ICONS . 'accounts/ico_admin.png" />' => '10%', 'Login' => '40%', txt('last_activity') => '30%', txt('action') => '30%'));
        for ($i = 0; $i < $c; $i++) {
            $u = new phpos_users();
            $u->set_id_user($users_ids[$i]['id_user']);
            $u->get_user_by_id();
            if ($u->get_last_activity() != 0) {
                $d = date('d.m.Y H:i:s', $u->get_last_activity());
            } else {
                $d = txt('never');
            }
            $action = helper_reload(array('section' => 'group_users', 'add_user_id' => $u->get_id_user()));
            echo $layout->row(array('<img src="' . ICONS . 'accounts/ico_admin.png"  style="height:20px"/>', $u->get_user_login(), $d, $layout->button(txt('group_add_user'), $action, 'edit_add')));
        }
        echo $layout->tbl_end();
    } else {
        echo $layout->empty_list();
    }
    echo $layout->end('column');
} else {
    winreload(WIN_ID, array('section' => 'list'));
}
?>


예제 #3
0
 public function get_action_dblclick($file)
 {
     if ($this->is_directory($file)) {
         if (!defined('DESKTOP')) {
             return helper_reload(array('reset_shared' => 0, 'dir_id' => $file['id']));
         } else {
             return winopen($file['basename'], 'app', 'app_id:explorer@index', 'fs:db_mysql,dir_id:' . $file['id']);
         }
     } else {
         $filedata = $this->get_file_info($file);
         $action = "phpos.windowCreate('" . $filedata['basename'] . "','" . $filedata['app_id'] . "', '" . $filedata['win_params'] . "', '" . $filedata['app_params'] . "');";
         $app_action = 'app_id:' . $filedata['app_id'] . '@' . $filedata['app_action'];
         $action = winopen(txt($filedata['basename']), $filedata['plugin_id'], $app_action, $filedata['app_params']);
         /*
         	{		
         		$str = "phpos.windowCreate('".$title."','".$app."', '".$params."', '".$app_params."')";	
         		//this.controllerWindows('action=create&title=' + title_encode + '&wintype=' + type_encode + '&params=' + json_params_encode + app_params_url);
         */
         return $action;
         //return "alert('plik');";
     }
 }
예제 #4
0
<?php

/*
**********************************

	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;
}
$app_toolbar = array();
$app_toolbar[] = array('id' => 'new_user', 'title' => 'Add new user', 'link' => helper_reload(array('section' => 'new_user')), 'icon' => 'accounts/toolbar_new_user2.png', 'tip' => 'Add new user');
$app_toolbar[] = array('id' => 'users_list', 'title' => 'Browse users', 'link' => helper_reload(array('section' => 'users_list')), 'icon' => 'accounts/toolbar_accounts.png', 'tip' => 'Browse users list');
$app_toolbar[] = array('id' => 'account', 'title' => 'Your account', 'link' => helper_reload(array('section' => 'account')), 'icon' => 'accounts/toolbar_edit.png', 'tip' => 'Your account');
$app_toolbar[] = array('id' => 'account_groups', 'title' => 'Workgroups', 'link' => helper_reload(array('section' => 'account_groups')), 'icon' => 'accounts/toolbar_edit.png', 'tip' => 'Manage your workgroups');
$app_toolbar[] = array('id' => 'list', 'title' => 'User groups', 'link' => helper_reload(array('section' => 'list')), 'icon' => 'user.png', 'tip' => 'Groups admin');
$app_toolbar[] = array('id' => 'groups', 'title' => 'Settings', 'link' => 'alert()', 'icon' => 'user.png', 'tip' => 'Groups admin');
예제 #5
0
 public function jquery()
 {
     $onsuccess = '';
     if (!empty($this->onsuccess)) {
         $onsuccess = ' ' . $this->onsuccess . '';
     }
     $this->form_jquery .= "\n\t\t\$('#" . $this->form_data['id'] . "').form({  \t\t\t\t\t\n\t\t\t\tonSubmit: function(){\n\t\t\t\t\n\t\t\t\t";
     if (!empty($this->jquery_required)) {
         $this->form_jquery .= "\n\t\t\tvar form_error = 0;\n\t\t\t\$('.form_error_message p').html('');\n\t\t\t";
         $this->form_jquery .= $this->jquery_required;
         $this->form_jquery .= "\n\t\t\tif(form_error == 1)\n\t\t\t{\n\t\t\t\t//alert('wymagane');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t";
     }
     $this->form_jquery .= "\t\t\n\t\t\t\t\n\t\t},  \n\t\tsuccess:function(data){\t\t\t\t\t\n\t\t\t\t//" . helper_reload() . "\n\t\t\t\t" . $onsuccess . "\n\t\t\t\t" . $this->render_jquery_reload() . "\n\t\t\t\t\treturn false; \t\t\t\t\n\t\t}\t\t\t\t\n\t\t});\n\t\t";
     $this->form_jquery .= $this->jquery_helper();
     global $my_app;
     $my_app->jquery_onready($this->form_jquery);
     //return $this->form_jquery;
 }
예제 #6
0
					<?php 
echo helper_reload();
?>
					return false; 
				}				
			});
			
			$('#addressbar<?php 
div();
?>
').form({  					
				onSubmit: function(){  							
				},  
				success:function(data){				
					<?php 
echo helper_reload();
?>
					return false; 
				}				
			});
			
			
			
			// == If click in empty area (remove border from icon)
			$('#phpos_explorer_td<?php 
div();
?>
').mousedown(function() {					
				if($(this).children('div').is(':hover'))
				{
				} else {
예제 #7
0
            $u_info->set_id_user($session_info['id_user']);
            $u_info->get_user_by_id();
            $tip = '<b>UID:</b> ' . $session_info['id_user'] . '<br /><b>' . txt('logs_sessions_fulltime') . '</b> ' . date('d.m.Y H:i:s', intval($session_info['start_time'])) . ' - ' . date('d.m.Y H:i:s', intval($session_info['end_time']));
            $usr_link = '<b>' . $u_info->get_user_login() . '</b> (UID: ' . $session_info['id_user'] . ')';
            $action = helper_reload(array('section' => 'sessions', 'action' => 'delete_session', 'id_session' => $session_info['id_session']));
            echo $layout->row(array($session_info['id_session'], date('d.m.Y H:i:s', intval($session_info['start_time'])), date('d.m.Y H:i:s', intval($session_info['end_time'])), $usr_link, $session_info['user_ip'], $session_info['user_browser'], $session_info['php_sessid'], $layout->button(txt('btn_delete'), $action, 'cancel')), $tip);
        }
        echo $layout->tbl_end();
    }
} else {
    // log session
    $sessions = new phpos_users();
    if ($sessions->is_session_id($id_session)) {
        echo $layout->subtitle($txt['logs_section_sessions_view_title'], ICONS . 'logs/section_sessions.png');
        echo $layout->txtdesc($txt['logs_section_sessions_view_desc']);
        echo $layout->tbl_start();
        $layout->td_classes(array(''));
        echo $layout->head(array(txt('logs_section_sessions_tbl_id') => '5%', txt('logs_section_sessions_tbl_starttime') => '10%', txt('logs_section_sessions_tbl_endtime') => '10%', txt('logs_section_sessions_tbl_user') => '25%', txt('logs_section_sessions_tbl_ip') => '15%', txt('logs_section_sessions_tbl_browser') => '20%', txt('logs_section_sessions_tbl_sid') => '5%', txt('logs_section_sessions_tbl_action') => '10%'));
        $session_info = $sessions->get_session_id_data($id_session);
        $tip = '<b>UID:</b> ' . $session_info['id_user'] . '<br /><b>' . txt('logs_sessions_fulltime') . '</b> ' . date('d.m.Y H:i:s', intval($session_info['start_time'])) . ' - ' . date('d.m.Y H:i:s', intval($session_info['end_time']));
        $u_info = new phpos_users();
        $u_info->set_id_user($session_info['id_user']);
        $u_info->get_user_by_id();
        $usr_link = '<b>' . $u_info->get_user_login() . '</b> (UID: ' . $session_info['id_user'] . ')';
        $action = helper_reload(array('section' => 'sessions', 'action' => 'delete_session', 'id_session' => $session_info['id_session']));
        echo $layout->row(array($session_info['id_session'], date('d.m.Y H:i:s', intval($session_info['start_time'])), date('d.m.Y H:i:s', intval($session_info['end_time'])), $usr_link, $session_info['user_ip'], $session_info['user_browser'], $session_info['php_sessid'], $layout->button(txt('btn_delete'), $action, 'cancel')), $tip);
        echo $layout->tbl_end();
    } else {
        echo 'Session not exists in DB.';
    }
}
예제 #8
0
} else {
    echo $layout->empty_list();
}
echo $layout->end('column');
echo $layout->column('33%');
echo $layout->subtitle(txt('banned_users'), ICONS . 'status_error.png');
echo $layout->txtdesc(txt('dsc_users_list_banned'));
$users = new phpos_users();
$how_many = $users->count_users('INACTIVE');
if ($how_many != 0) {
    $users_ids = $users->get_users('INACTIVE');
    $c = count($users_ids);
    echo $layout->tbl_start();
    echo $layout->head(array('<img src="' . ICONS . 'accounts/small_users.png" />' => '10%', 'Login' => '50%', txt('last_activity') => '40%'));
    for ($i = 0; $i < $c; $i++) {
        $u = new phpos_users();
        $u->set_id_user($users_ids[$i]);
        $u->get_user_by_id();
        if ($u->get_last_activity() != 0) {
            $d = date('d.m.Y H:i:s', $u->get_last_activity());
        } else {
            $d = txt('never');
        }
        echo $layout->row(array('<img src="' . ICONS . 'accounts/small_users.png" style="height:20px"/>', '<a href="javascript:void(0);" onclick="' . helper_reload(array('section' => 'edit_account', 'user_id' => $u->get_id_user())) . '">' . $u->get_user_login() . '</a>', $d), txt('dsc_users_click'));
    }
    echo $layout->tbl_end();
} else {
    echo $layout->empty_list();
}
echo $layout->end('column');
echo $layout->clr();
		
		});
	
	
	
	
  this.on("complete", function(file) {
	
	/*
	jSuccess(
				"' . txt('uploaded') . '",
				{
					autoHide : true, 
					clickOverlay : false,
					MinWidth : 300,
					TimeShown : 2000,
					ShowTimeEffect : 1000,
					HideTimeEffect : 600,
					LongTrip :20,
					HorizontalPosition : "right",
					VerticalPosition : "bottom",
					ShowOverlay : false
				});
		*/
		' . helper_reload() . ' 		
		
		});
  } 
	});
';
}
예제 #10
0
	GitHUB: https://github.com/phpos/
	File version: 1.0.0, 2013.10.08
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
global $footer;
echo $layout->back_button(null, helper_reload(array('msg_id' => null)), null, null);
$msg = new phpos_messages();
$msg_data = $msg->get_msg($my_app->get_param('msg_id'));
$form = new phpos_forms();
//$form->onsuccess(helper_reload(array('section' => 'sended')));
echo $form->form_start('', '', array('app_params' => ''));
$form->texteditor('msg_body', null, null, $msg_data['msg']);
if ($msg->is_to_me($my_app->get_param('msg_id'))) {
    $u = new phpos_users();
    $u->set_id_user($msg_data['id_user_from']);
    $u->get_user_by_id();
    $authors = '<span style="color:black; font-weight:bold;font-size:16px">' . txt('messager_tbl_from') . ': ' . $u->get_user_login() . ' </span>';
    $form->button(txt('messager_btn_reply'), helper_reload(array('section' => 'new', 'reply_id' => $my_app->get_param('msg_id'))), 'reply');
} else {
    $u = new phpos_users();
    $u->set_id_user($msg_data['id_user_to']);
    $u->get_user_by_id();
    $authors = '<span style="color:black; font-weight:bold;font-size:16px">' . txt('messager_tbl_to') . ': ' . $u->get_user_login() . ' </span>';
}
$footer = '<img src="' . MY_RESOURCES_URL . 'msg2.png" />' . $authors . ' <b style="padding-left:30px;color:black">' . txt('messager_sent') . ':</b> ' . date('Y.m.d. H:i', $msg_data['sended_at']);
echo $form->render();
echo $form->form_end();
예제 #11
0
function actionNew($menu_item)
{
    $j = helper_reload(array('action' => 'new_file'));
    return $j;
}
예제 #12
0
echo $layout->subtitle(txt('cp_themes_global_themes'), ICONS . 'settings/wallpaper_icon.png');
echo $layout->txtdesc(txt('cp_themes_global_themes_desc'));
$list_themes = $themes->get_themes_list();
echo $layout->tbl_start();
$layout->td_classes(array(''));
echo $layout->head(array(txt('cp_themes_theme_name') => '100%'));
foreach ($list_themes as $theme_name) {
    $themes->load_theme_info($theme_name);
    $name = $themes->get_name();
    if ($this_theme == $theme_name) {
        $name = '<b>' . $themes->get_name() . '</b>';
    }
    if ($theme_name == $selected_theme) {
        $name = '<img src="' . ICONS . 'status/status_ok.png" style="width:15px"/> ' . $name;
    }
    echo $layout->row(array('<a href="javascript:void(0);" onclick="' . helper_reload(array('section' => 'config_themes', 'theme_type' => 'global', 'theme_id' => $theme_name)) . '">' . $name . '</a>'), txt('st_usr_wall_c'));
}
echo $layout->tbl_end();
echo $layout->end('column');
echo $layout->column('50%');
echo $layout->subtitle(txt('cp_themes_preview'), ICONS . 'preview.png');
echo $layout->txtdesc(txt('cp_themes_preview_desc'));
$themes->load_theme_info($this_theme);
$name = $themes->get_name();
$version = $themes->get_version();
echo '<img style="width:350px;border:4px solid black" src="' . $themes->theme_img_preview($this_theme) . '" /><br />' . $name . '<br />Version: ' . $version . '<br />';
$action = helper_reload(array('section' => 'config_themes', 'set_theme' => 1, 'theme_id' => $this_theme));
echo $layout->button(txt('cp_themes_set_global'), $action, 'ok');
echo $layout->txtdesc(txt('cp_themes_set_global_desc'));
echo $layout->end('column');
echo $layout->clr();
예제 #13
0
<?php

/*
**********************************

	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;
}
$app_toolbar = array();
$app_toolbar[] = array('id' => 'new_account', 'title' => txt('dsc_cloud_a_new'), 'link' => helper_reload(array('section' => 'new_account', 'cloud_type' => null)), 'icon' => 'create_new.png', 'tip' => txt('dsc_cloud_a_new'));
$app_toolbar[] = array('id' => 'list', 'title' => txt('dsc_cloud_a_list'), 'link' => helper_reload(array('section' => 'list')), 'icon' => 'clouds/cloud_icon.png', 'tip' => txt('dsc_cloud_a_list'));
$app_toolbar[] = array('id' => 'edit_account', 'title' => txt('dsc_cloud_a_edit'), 'link' => helper_reload(array('section' => 'edit_account')), 'icon' => 'accounts/toolbar_edit.png', 'tip' => txt('dsc_cloud_a_edit'));
예제 #14
0
<?php

/*
**********************************

	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;
}
$app_toolbar = array();
$app_toolbar[] = array('id' => 'account', 'title' => 'Your account', 'link' => helper_reload(array('section' => 'account')), 'icon' => 'accounts/toolbar_edit.png', 'tip' => 'Your account');
$app_toolbar[] = array('id' => 'wallpapers', 'title' => 'Wallpapers', 'link' => helper_reload(array('section' => 'wallpapers')), 'icon' => 'settings/wallpaper_icon.png', 'tip' => 'Change wallpaper');
$app_toolbar[] = array('id' => 'groups', 'title' => 'Workgroups', 'link' => helper_reload(array('section' => 'groups')), 'icon' => 'workgroups.png', 'tip' => 'Manage your workgroups');
예제 #15
0
<?php

/*
**********************************

	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;
}
$app_toolbar = array();
$app_toolbar[] = array('id' => 'new_user', 'title' => txt('usr_new'), 'link' => helper_reload(array('section' => 'new_user')), 'icon' => 'accounts/toolbar_new_user2.png', 'tip' => txt('usr_new'));
$app_toolbar[] = array('id' => 'edit_account', 'title' => txt('edit_user'), 'link' => helper_reload(array('section' => 'edit_account')), 'icon' => 'accounts/toolbar_edit.png', 'tip' => txt('edit_user'));
$app_toolbar[] = array('id' => 'list', 'title' => txt('users'), 'link' => helper_reload(array('section' => 'list')), 'icon' => 'user.png', 'tip' => txt('users'));
예제 #16
0
 public function get_action_dblclick($file)
 {
     if ($this->is_directory($file)) {
         return helper_reload(array('shared_id' => 0, 'reset_shared' => 0, 'dir_id' => $file['id']));
     } else {
         return "alert('plik');";
     }
 }
echo $layout->txtdesc(txt('cp_settings_section_wallpapers_desc'));
$wallpaper = new phpos_wallpapers();
$wallpapers_url = $wallpaper->get_global_wallpapers_url();
echo $layout->column('50%');
echo $layout->subtitle(txt('g_wallpapers'), ICONS . 'settings/wallpaper_icon.png');
echo $layout->txtdesc(txt('st_usr_wall_g'));
$list_wallpapers = $wallpaper->get_global_wallpapers();
echo $layout->tbl_start();
$layout->td_classes(array(''));
echo $layout->head(array(txt('wallpaper_image') => '100%'));
foreach ($list_wallpapers as $img_name) {
    $name = $img_name;
    if ($this_wallpaper == $img_name && $this_wallpaper_type == 'global') {
        $name = '<b>' . $img_name . '</b>';
    }
    if ($img_name == $selected_wallpaper) {
        $name = '<img src="' . ICONS . 'status/status_ok.png" style="width:15px"/> ' . $name;
    }
    echo $layout->row(array('<a href="javascript:void(0);" onclick="' . helper_reload(array('section' => 'config_wallpapers', 'wallpaper_type' => 'global', 'wallpaper_id' => $img_name)) . '">' . $name . '</a>'), txt('st_usr_wall_c'));
}
echo $layout->tbl_end();
echo $layout->end('column');
echo $layout->column('50%');
echo $layout->subtitle(txt('preview'), ICONS . 'preview.png');
echo $layout->txtdesc(txt('st_usr_wall_p'));
echo '<img style="width:350px;border:4px solid black" src="' . $wallpapers_url . $this_wallpaper . '" /><br />' . $this_wallpaper . '<br />';
$action = helper_reload(array('section' => 'config_wallpapers', 'set_wallpaper' => 1, 'wallpaper_type' => 'global', 'wallpaper_id' => $this_wallpaper));
echo $layout->button(txt('set_wallpaper'), $action, 'ok');
echo $layout->txtdesc(txt('st_usr_wall_s'));
echo $layout->end('column');
echo $layout->clr();
예제 #18
0
	(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 '<a href="#" title="ssss" rel="tooltip">aaaaaaaaaaaaaaaaaaaaaaaa</a>';
echo $layout->title(txt('messager_section_new_desc'));
$my_app->set_param('msg_id', null);
cache_param('msg_id');
$form = new phpos_forms();
$form->onsuccess(helper_reload(array('section' => 'sended')));
echo $form->form_start('new_msg', '', array('app_params' => ''));
$form->input('hidden', 'action', '', '', 'new_msg');
echo $layout->column('50%');
$form->condition('not_null', true, txt('login_empty'));
$form->input('text', 'msg_title', txt('messager_form_title'), txt('messager_form_title_desc'), $start_title);
$form->status();
echo $form->render();
echo $layout->end('column');
echo $layout->column('50%');
$users = new phpos_users();
$users_ids = $users->get_users('ALL');
$i = 0;
$my_id = logged_id();
foreach ($users_ids as $id) {
    $usr_info = new phpos_users();
예제 #19
0
<?php

/*
**********************************

	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.09
 
**********************************
*/
if (!defined('PHPOS')) {
    die;
}
$app_toolbar = array();
$app_toolbar[] = array('id' => 'new', 'title' => txt('messager_section_new'), 'link' => helper_reload(array('reply_id' => null, 'section' => 'new', 'msg_id' => null)), 'icon' => 'msg_new.png', 'tip' => txt('messager_section_new_desc'));
$app_toolbar[] = array('id' => 'received', 'title' => txt('messager_section_received'), 'link' => helper_reload(array('section' => 'received', 'msg_id' => null)), 'icon' => 'msg_received.png', 'tip' => txt('messager_section_received_desc'));
$app_toolbar[] = array('id' => 'sended', 'title' => txt('messager_section_sended'), 'link' => helper_reload(array('section' => 'sended', 'msg_id' => null)), 'icon' => 'msg_sended.png', 'tip' => txt('messager_section_sended_desc'));
예제 #20
0
<?php

/*
**********************************

	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;
}
$app_toolbar = array();
$app_toolbar[] = array('id' => 'config_site', 'title' => txt('cp_settings_section_site'), 'link' => helper_reload(array('section' => 'config_site')), 'icon' => 'mycomp.png', 'tip' => txt('cp_settings_section_site'));
$app_toolbar[] = array('id' => 'config_themes', 'title' => txt('cp_settings_section_themes'), 'link' => helper_reload(array('section' => 'config_themes')), 'icon' => 'settings/themes_icon.png', 'tip' => txt('cp_settings_section_themes'));
$app_toolbar[] = array('id' => 'config_wallpapers', 'title' => txt('cp_settings_section_wallpapers'), 'link' => helper_reload(array('section' => 'config_wallpapers')), 'icon' => 'settings/wallpaper_icon.png', 'tip' => txt('cp_settings_section_wallpapers'));
$app_toolbar[] = array('id' => 'config_updater', 'title' => txt('cp_settings_section_updater'), 'link' => helper_reload(array('section' => 'config_updater')), 'icon' => 'apps/updater.png', 'tip' => txt('cp_settings_section_updater'));
$app_toolbar[] = array('id' => 'config_security', 'title' => txt('cp_settings_section_security'), 'link' => helper_reload(array('section' => 'config_security')), 'icon' => 'access_denied3.png', 'tip' => txt('cp_settings_section_security'));
예제 #21
0
}
echo $layout->tbl_end();
echo $layout->end('column');
echo $layout->column('33%');
echo $layout->subtitle(txt('u_wallpapers'), ICONS . 'settings/wallpaper_icon.png');
echo $layout->txtdesc(txt('st_usr_wall_u'));
$list_wallpapers = $wallpaper->get_user_wallpapers();
echo $layout->tbl_start();
$layout->td_classes(array(''));
echo $layout->head(array(txt('wallpaper_image') => '100%'));
foreach ($list_wallpapers as $img_name) {
    $name = $img_name;
    if ($this_wallpaper == $img_name && $this_wallpaper_type == 'user') {
        $name = '<b>' . $img_name . '</b>';
    }
    if ($img_name == $selected_wallpaper && $selected_wallpaper_type == 'user') {
        $name = '<img src="' . ICONS . 'status/status_ok.png" style="width:15px"/> ' . $name;
    }
    echo $layout->row(array('<a href="javascript:void(0);" onclick="' . helper_reload(array('section' => 'wallpapers', 'wallpaper_type' => 'user', 'wallpaper_id' => $img_name)) . '">' . $name . '</a>'), txt('st_usr_wall_c'));
}
echo $layout->tbl_end();
echo $layout->end('column');
echo $layout->column('33%');
echo $layout->subtitle(txt('preview'), ICONS . 'preview.png');
echo $layout->txtdesc(txt('st_usr_wall_p'));
echo '<img style="width:350px;border:4px solid black" src="' . $wallpapers_url . $this_wallpaper . '" /><br />' . $this_wallpaper . '<br />';
$action = "phpos.wallpaperUpdate('" . $wallpapers_url . "', '" . $this_wallpaper . "', '" . $this_wallpaper_type . "'); phpos.windowRefresh('" . WIN_ID . "','');";
echo $layout->button(txt('set_wallpaper'), $action, 'ok');
echo $layout->txtdesc(txt('st_usr_wall_s'));
echo $layout->end('column');
echo $layout->clr();
예제 #22
0
    $c = $msg->count_sended();
    echo $layout->subtitle(txt('messager_sended_title'), MY_RESOURCES_URL . 'msg_sended.png');
    echo $layout->txtdesc(txt('messager_sended_desc'));
    echo $layout->tbl_start();
    echo $layout->head(array('' => '5%', txt('messager_tbl_message') => '40%', '<img style="display:inline-block; vertical-align:middle" src="' . MY_RESOURCES_URL . 'time_icon.png" /> ' . txt('messager_tbl_sended') => '15%', '<img style="display:inline-block; vertical-align:middle" src="' . MY_RESOURCES_URL . 'time_icon.png" /> ' . txt('messager_tbl_readed') => '15%', '<img style="display:inline-block; vertical-align:middle" src="' . MY_RESOURCES_URL . 'user_icon.png" />' . txt('messager_tbl_to') => '15%', txt('messager_tbl_actions') => '15%'));
    if ($c != 0) {
        $records = $msg->get_sended();
        foreach ($records as $row) {
            $icon = MY_RESOURCES_URL . 'readed_icon.png';
            $readed = date('Y.m.d H:i', $row['readed_at']);
            $title = $row['title'];
            if (!$msg->is_readed($row['id'])) {
                $icon = MY_RESOURCES_URL . 'unreaded_icon.png';
                $title = '<b>' . $row['title'] . '</b>';
                $readed = txt('messager_tbl_not_yet');
            }
            $delete_action = "\n\t\t\t\$.messager.confirm('" . txt('delete') . "', '" . txt('delete_confirm') . "?', function(r){\n\t\t\tif (r){\n\t\t\t\t" . helper_reload(array('delete_sended_id' => $row['id'])) . "\n\t\t\t}\n\t\t\t});\t";
            //helper_reload(array('delete_sended_id' => $row['id']));
            $u = new phpos_users();
            $u->set_id_user($row['id_user_to']);
            $u->get_user_by_id();
            $row_items = array('<img src="' . $icon . '" />', '<a href="javascript:void(0);" onclick="' . helper_reload(array('msg_id' => $row['id'])) . '">' . $title . '</a>', date('Y.m.d H:i', $row['sended_at']), $readed, $u->get_user_login(), $layout->button(txt('delete'), $delete_action, 'cancel'));
            echo $layout->row($row_items, string_cut(strip_tags($row['msg'], '<br>'), 100));
        }
    } else {
        echo $layout->empty_list();
    }
    echo $layout->tbl_end();
} else {
    include MY_APP_DIR . 'views/view_message.php';
}
예제 #23
0
} else {
    echo $layout->empty_list();
}
echo $layout->tbl_end();
echo $layout->end('column');
echo $layout->column('33%');
echo $layout->subtitle(txt('groups_owner'), ICONS . 'workgroups.png');
echo $layout->txtdesc(txt('groups_own_desc'));
$groups = new phpos_groups();
$group_ids = $groups->get_my_own_groups();
$c = count($group_ids);
echo $layout->tbl_start();
$layout->td_classes(array('', '', 'tbl_grey'));
if ($c != 0) {
    echo $layout->head(array('<img src="' . ICONS . 'workgroups.png" />' => '20%', txt('name') => '40%', txt('owner') => '40%'));
    for ($i = 0; $i < $c; $i++) {
        $g = new phpos_groups();
        $g->set_id($group_ids[$i]['id']);
        $g->get_group();
        $usr_count = $g->count_users();
        $u = new phpos_users();
        $u->set_id_user($group_ids[$i]['id_owner']);
        $u->get_user_by_id();
        echo $layout->row(array($usr_count, '<a href="javascript:void(0);" onclick="' . helper_reload(array('section' => 'group_users', 'group_id' => $g->get_id())) . '">' . $g->get_title() . '</a>', $u->get_user_login()), $g->get_desc());
    }
} else {
    echo $layout->empty_list();
}
echo $layout->tbl_end();
echo $layout->end('column');
echo $layout->clr();
예제 #24
0
<?php

/*
**********************************

	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;
}
$app_toolbar = array();
$app_toolbar[] = array('id' => 'logs', 'title' => txt('logs_section_logs_title'), 'link' => helper_reload(array('section' => 'logs')), 'icon' => 'logs/section_logs.png', 'tip' => txt('logs_section_logs_title_desc'));
$app_toolbar[] = array('id' => 'sessions', 'title' => txt('logs_section_sessions_title'), 'link' => helper_reload(array('section' => 'sessions', 'id_session' => null)), 'icon' => 'logs/section_sessions.png', 'tip' => txt('logs_section_sessions_desc'));
예제 #25
0
function actionChangeIcons($menu_item)
{
    $j = helper_reload(array('icon_size' => $menu_item['icon_size']));
    return $j;
}
예제 #26
0
}
echo $layout->column('33%');
echo $layout->subtitle(txt('ftp_public'));
if (is_root() || is_admin()) {
    echo $layout->txtdesc(txt('dsc_ftp_list_public'));
} else {
    echo $layout->txtdesc(txt('dsc_ftp_list_public_user'));
}
$ftp = new phpos_ftp();
$ftp_ids = $ftp->get_public_ftp();
$c = count($ftp_ids);
if ($c != 0) {
    echo $layout->tbl_start();
    $layout->td_classes(array('', '', 'tbl_grey'));
    echo $layout->head(array('<img src="' . ICONS . 'accounts/small_users.png" />' => '20%', txt('ftp_account') => '40%', 'Host' => '40%'));
    for ($i = 0; $i < $c; $i++) {
        $f = new phpos_ftp();
        $f->set_id($ftp_ids[$i]['id']);
        $f->get_ftp();
        //$usr_count = $f->count_users();
        $u = new phpos_users();
        $u->set_id_user($group_ids[$i]['id_owner']);
        $u->get_user_by_id();
        echo $layout->row(array('<img src="' . ICONS . 'accounts/small_users.png"  style="height:20px"/>', '<a href="javascript:void(0);" onclick="' . helper_reload(array('section' => 'edit_account', 'ftp_id' => $f->get_id())) . '">' . $f->get_title() . '</a>', $f->get_host()), $f->get_desc());
    }
    echo $layout->tbl_end();
} else {
    echo $layout->txtdesc(txt('dsc_ftp_list_empty'));
}
echo $layout->end('column');
echo $layout->clr();
예제 #27
0
 public function get_action_dblclick($file)
 {
     if ($this->is_directory($file)) {
         if (!defined('DESKTOP')) {
             return helper_reload(array('shared_id' => 0, 'reset_shared' => 0, 'dir_id' => $file['id']));
         } else {
             return winopen($file['basename'], 'app', 'app_id:explorer@index', 'shared_id:0,reset_shared:0,fs:local_files,dir_id:' . $file['id']);
         }
     } else {
         return 'explorer_open_in_browser("' . $file['id'] . '");';
     }
 }
예제 #28
0
    public function get_explorer_icon_html($icon, $rewrite = null)
    {
        $class = ' phpos_icon_mouseout';
        global $my_app, $phposFS;
        /*
        if($icon['title'] == $mark_file)
        {
        	$class = ' phpos_icon_mouseover';			
        }	
        */
        $icon['icon'] = $this->filesystem->get_icon($icon);
        if ($my_app->get_param('fs') == 'db_mysql') {
            if ($icon['content']) {
                if (file_exists(PHPOS_WEBROOT_DIR . '_phpos/resources/' . $icon['app_id'] . '/db_file.png')) {
                    $icon['icon'] = PHPOS_WEBROOT_URL . '_phpos/resources/' . $icon['app_id'] . '/db_file.png';
                }
            }
        }
        /*.............................................. */
        if (empty($icon['action'])) {
            $icon['action'] = $this->filesystem->get_action_dblclick($icon);
        }
        if ($my_app->get_param('api_dialog')) {
            if ($my_app->get_param('api_dialog_type') == 'open_file') {
                if (!$phposFS->is_directory($icon)) {
                    $icon['action'] = helper_reload(array('opened_file_id' => $icon['id'], 'opened_file_name' => $icon['basename'], 'opened_file_extension' => $icon['extension'], 'opened_file_app_id' => $icon['app_id']));
                }
            } else {
                if (!$phposFS->is_directory($icon)) {
                    $icon['action'] = "\$('#explorer_api" . WIN_ID . " input[name=explorer_save_as_filename]').val('" . $icon['filename'] . "');";
                }
            }
        }
        /*.............................................. */
        $display = 'display:inline-block';
        if (defined('IN_DESKTOP')) {
            $display = '';
        }
        $shared = '';
        if ($icon['is_shared']) {
            $shared = '<br/><span style="color:white; font-size: 9px; padding:2px; background-color:#2e1953">' . txt('shortcuts_icon_explorer_shared') . '</span>';
        }
        /*.............................................. */
        if ($rewrite === null) {
            $icon_data = '<div title="' . $icon['filename'] . '" class="easyui-tooltip phpos_icon ' . $class . '"  style="' . $display . '" id="' . $icon['div'] . '">
					<a href="javascript:void(0)" ondblclick="' . $icon['action'] . '">
					<img src="' . $icon['icon'] . '" />
					<br />' . wordwrap($icon['filename'], 15, " ", 1) . $shared . '
					</a>
				</div>';
        } else {
            $url = $icon['id'];
            if ($my_app->get_param('fs') == 'local_files') {
                $url = str_replace(PHPOS_WEBROOT_DIR, '', $icon['id']);
            }
            $shortname = wordwrap($icon['filename'], 15, " ", 1);
            $icon_data = str_replace(array('%url%', '%id%', '%div%', '%class%', '%style%', '%action%', '%icon%', '%fullname%', '%shortname%'), array($url, $icon['id'], $icon['div'], $class, $display, $icon['action'], $icon['icon'], $icon['filename'], $shortname), $rewrite);
        }
        /*
        	$icon_data = '<div title="basename:'.$icon['basename'].' dirname: '.$icon['dirname'].'" class="easyui-tooltip phpos_icon '.$class.'"  style="'.$display.'" id="'.$icon['div'].'">
        		<a href="javascript:void(0)" ondblclick="'.$icon['action'].'">
        		<img src="'.$icon['icon'].'" title="'.$icon['id'].'">
        		<br />'.$shared.wordwrap($icon['filename'], 15, " ", 1).'
        		</a>
        	</div>';			
        */
        /*.............................................. */
        // Generate HTML code to render icon
        $html_RenderIcons = '
			<div id="m' . $icon['div'] . '" style="display:inline-block" class="' . $this->config['icon_size_class'] . '">
				' . $icon_data . '
			</div>';
        if (defined('IN_DESKTOP')) {
            $html_RenderIcons = $icon_data;
        }
        return $html_RenderIcons;
    }
예제 #29
0
                echo '<li data-options="iconCls:\'icon-folder\'' . $month_closed . '">
				<span><a href="javascript:void(0);" onclick="' . helper_reload(array('year_id' => $year_number, 'month_id' => $month_number, 'day_id' => null, 'log_id' => null)) . '"><span style="color:black">' . $month_translated . '</span></a></span>';
                $dir_days = glob($logs_dir . $year_number . '/' . $month_number . '/*.*');
                echo '<ul>';
                foreach ($dir_days as $day) {
                    if (!is_dir($day) && basename($day) != 'index.php') {
                        $days[] = basename($day);
                        $log_ext = '.log';
                        $day_id = str_replace(array('-', $year_number, $month_number, $log_ext), '', basename($day));
                        $today = '';
                        if ($logs->is_today_date($year_number, $month_number, $day_id)) {
                            $today = ' <span style="font-weight:bold; color: #1d791e">(' . txt('today') . ')</span>';
                        }
                        if ($my_app->get_param('log_id') == $day) {
                            $day_id = '<b>' . $day_id . '</b>';
                        }
                        echo '<li data-options="iconCls:\'icon-file\'">
				<span><a href="javascript:void(0);" onclick="' . helper_reload(array('year_id' => $year_number, 'month_id' => $month_number, 'day_id' => $day_id, 'log_id' => $day)) . '"><span style="color:black">' . $day_id . $today . '</span></a></span></li>';
                    }
                }
                echo '</ul>';
                echo '</li>';
            }
            echo '</ul>';
        }
        echo '</li>';
    }
    echo '</ul>';
}
echo $layout->end('column');
echo $layout->clr();
예제 #30
0
} else {
    echo $layout->txtdesc(txt('dsc_ftp_list_public_user'));
}
$ftp = new phpos_ftp();
$ftp_ids = $ftp->get_public_ftp();
$c = count($ftp_ids);
if ($c != 0) {
    echo $layout->tbl_start();
    $layout->td_classes(array('', '', 'tbl_grey'));
    echo $layout->head(array('<img src="' . ICONS . 'server/ftp.png" />' => '20%', txt('ftp_account') => '40%', 'Host' => '40%'));
    for ($i = 0; $i < $c; $i++) {
        $f = new phpos_ftp();
        $f->set_id($ftp_ids[$i]['id']);
        $f->get_ftp();
        //$usr_count = $f->count_users();
        $u = new phpos_users();
        $u->set_id_user($group_ids[$i]['id_owner']);
        $u->get_user_by_id();
        if (is_root() || $f->is_my($ftp_ids[$i]['id'])) {
            $item = '<a href="javascript:void(0);" onclick="' . helper_reload(array('section' => 'edit_account', 'ftp_id' => $f->get_id())) . '">' . $f->get_title() . '</a>';
        } else {
            $item = $f->get_title();
        }
        echo $layout->row(array('<img src="' . ICONS . 'server/ftp.png"  style="height:20px"/>', $item, $f->get_host()), $f->get_desc());
    }
    echo $layout->tbl_end();
} else {
    echo $layout->empty_list();
}
echo $layout->end('column');
echo $layout->clr();