Exemplo n.º 1
0
function show_own_page($day)
{
    // Convert date to finnish format
    $tmp = explode('-', $day);
    $tmp = $tmp[2] . '.' . $tmp[1] . '.' . $tmp[0];
    // Store next and previous days to variables so we can
    // create links for next and previous day.
    $next = date('Y-m-d', strtotime("+1 day", strtotime($day)));
    $prev = date('Y-m-d', strtotime("-1 day", strtotime($day)));
    echo '<div id="ownpage">';
    echo '<h2>';
    echo '<a href="index.php?day=' . $prev . '">&lt;&lt;&nbsp;</a>';
    echo '&nbsp;&nbsp;' . date('l', strtotime($day)) . ' ' . $tmp;
    echo '<a href="index.php?day=' . $next . '">&gt;&gt;</a>';
    echo '</h2>';
    // If there is no tasks to given date
    if (!show_tasks($day)) {
        echo 'No tasks for this day.<br><br>';
    }
    echo '<hr>';
    echo '<a href="future.php?day=' . $day . '">Long term todos</a>';
    // We can edit only tasks what will be today or in the future.
    // Statuses can still be changed.
    if (strtotime($day) >= strtotime(date('Y-m-d'))) {
        echo '<a href="edit.php?day=' . $day . '">Modify tasks</a>';
    }
    echo '<a href="settings.php">Settings</a>';
    echo '<br /><br />';
    echo '<a href="logout.php">Logout</a>';
    echo '</div>';
}
Exemplo n.º 2
0
	include_once('ressources/class.cron.inc');
	include_once('ressources/class.backup.inc');

$user=new usersMenus();
	if($user->AsSystemAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["show_backuped_folders"])){FOLDERS_BACKUPED();exit;}
	if(isset($_GET["ExecBackupTemporaryPath"])){BACKUP_OPTIONS_SAVE();exit;}
	if(isset($_GET["BACKUP_TASKS_LISTS"])){tasks_list();exit;}
	if(isset($_GET["show_tasks"])){show_tasks();exit;}
	if(isset($_GET["BACKUP_TASK_RUN"])){BACKUP_TASK_RUN();exit;}
	if(isset($_GET["backup-sources"])){BACKUP_SOURCES();exit;}
	if(isset($_GET["DeleteBackupSource"])){BACKUP_SOURCES_DELETE();exit;}
	if(isset($_GET["DeleteBackupTask"])){BACKUP_TASK_DELETE();exit;}
	if(isset($_GET["adv-options"])){BACKUP_OPTIONS();exit;}
	if(isset($_GET["backup-tests"])){BACKUP_TASK_TEST();exit;}
	if(isset($_GET["backup_stop_imap"])){BACKUP_SOURCES_SAVE_OPTIONS();exit;}
	if(isset($_GET["FOLDER_BACKUP"])){FOLDER_BACKUP_JS();exit;}
	if(isset($_GET["FOLDER_BACKUP_POPUP"])){FOLDER_BACKUP_POPUP();exit;}
	if(isset($_GET["BACKUP_FOLDER_ENABLE"])){BACKUP_FOLDER_ENABLE();exit;}
	if(isset($_GET["FOLDER_BACKUP_DELETE"])){FOLDERS_BACKUPED_DELETE();exit;}
	if(isset($_GET["TASK_EVENTS_DETAILS"])){TASK_EVENTS_DETAILS();exit;}
	if(isset($_GET["TASK_EVENTS_DETAILS_INFOS"])){TASK_EVENTS_DETAILS_INFOS();exit;}
	if(isset($_GET["BACKUP_TASK_MODIFY_RESSOURCES"])){BACKUP_TASK_MODIFY_RESSOURCES();exit;}
	if(isset($_POST["BACKUP_TASK_MODIFY_RESSOURCES_APPLY"])){BACKUP_TASK_MODIFY_RESSOURCES_SAVE();exit;}
Exemplo n.º 3
0
    case 'file_search_action':
        file_search_action();
        break;
    case 'file_search_form':
        file_search_form();
        break;
    case 'logout':
        logout();
        break;
    case 'obs_search_action':
        obs_search_action();
        break;
    case 'store':
        show_store();
        break;
    case 'stores':
        show_stores();
        break;
    case 'tasks':
        show_tasks();
        break;
    case 'obs':
        show_obs();
        break;
    default:
        if ($action) {
            error_page("Unknown action '{$action}'");
        }
        file_search_action();
        break;
}
Exemplo n.º 4
0
</table><br>

	<!-- список файлов -->
<table cellspacing="0" id='filesTable' border=1>
	<tr>
	<th>ID</th>
	<!-- <th><?php 
echo $lang[$l][25];
?>
</th> -->
	<th>Url</th>
	<th>Command</th>
	<th>Flags</th>
	<th>Function Name</th>
	<th><?php 
echo $lang[$l][26];
?>
</th>
	<th>Count</th>
	<th><?php 
echo $lang[$l][28];
?>
</th>
	</tr>
	<tbody>
		<?php 
echo show_tasks();
?>
	</tbody>
</table>
<div id="result"></div>