Пример #1
0
if ($action == "add") {
    Add("add", "", "", $username, $calendarid, $projectid, $details, $title, $startdatetime, $enddatetime, $isalldayevent, $istimerequest, $currentcal, $repeats, $repeattype, $repeatsun, $repeatmon, $repeattue, $repeatwed, $repeatthu, $repeatfri, $repeatsat, $repeatenddate, 0);
} elseif ($action == "editform") {
    DisplayForm($id, "", "", "", "", "", "", "", "", "", "", "", $currentcal, $repeats, $repeattype, $repeatsun, $repeatmon, $repeattue, $repeatwed, $repeatthu, $repeatfri, $repeatsat, $repeatenddate);
} elseif ($action == "edit") {
    Add("update", $id, $groupid, $username, $calendarid, $projectid, $details, $title, $startdatetime, $enddatetime, $isalldayevent, $istimerequest, $currentcal, $repeats, $repeattype, $repeatsun, $repeatmon, $repeattue, $repeatwed, $repeatthu, $repeatfri, $repeatsat, $repeatenddate, 0);
} elseif ($action == "editall") {
    Add("update", $id, $groupid, $username, $calendarid, $projectid, $details, $title, $startdatetime, $enddatetime, $isalldayevent, $istimerequest, $currentcal, $repeats, $repeattype, $repeatsun, $repeatmon, $repeattue, $repeatwed, $repeatthu, $repeatfri, $repeatsat, $repeatenddate, 1);
} elseif ($action == "delete") {
    Delete($id, $currentcal, 0);
} elseif ($action == "deleteall") {
    Delete($groupid, $currentcal, 1);
} elseif ($action == "cancel") {
    Cancel($id, $currentcal, $cancelreason, $notifyusers, 0);
} elseif ($action == "cancelall") {
    Cancel($groupid, $currentcal, $cancelreason, $notifyusers, 1);
} elseif ($action == "" || $action == "list") {
    //DisplayList();
    echo "Nothing to do";
}
/* ----------------------------------------------- */
/* --------- Add --------------------------------- */
/* ----------------------------------------------- */
function Add($method, $id, $groupid, $username, $calendarid, $projectid, $details, $title, $startdatetime, $enddatetime, $isalldayevent, $istimerequest, $currentcal, $repeats, $repeattype, $repeatsun, $repeatmon, $repeattue, $repeatwed, $repeatthu, $repeatfri, $repeatsat, $repeatenddate, $editall)
{
    /* check if any form elements are bad, if so redisplay the addform */
    if ($title == "") {
        DisplayForm("", "'Title' is blank", "", $username, $calendarid, $projectid, $details, $title, $startdatetime, $enddatetime, $isalldayevent, $istimerequest, $currentcal, $repeats, $repeattype, $repeatsun, $repeatmon, $repeattue, $repeatwed, $repeatthu, $repeatfri, $repeatsat, $repeatenddate);
        return;
    }
    if (!strtotime($startdatetime)) {
Пример #2
0
include_once 'ressources/class.mimedefang.inc';
include_once 'ressources/class.ini.inc';
if (isset($_GET["script"])) {
    script();
    exit;
}
if (isset($_GET["step"])) {
    step();
    exit;
}
if (isset($_GET["SaveSettings"])) {
    SaveSettings();
    exit;
}
if (isset($_GET["Cancel"])) {
    Cancel();
    exit;
}
function Cancel()
{
    $sock = new sockets();
    $sock->SET_INFO("SmtpWizardFinish", 1);
}
function page_0()
{
    $html = "\n\t<p class=caption>{wizard_smtp_intro}</p>";
    echo BuildPage('{welcome_first_wizard}', $html);
}
function page_1()
{
    if ($_COOKIE["company"] == null) {
Пример #3
0
<?php
session_start();
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.main_cf.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.user.inc');
	include_once('ressources/class.mimedefang.inc');
	include_once('ressources/class.ini.inc');	

if(isset($_GET["script"])){script();exit;}
if(isset($_GET["step"])){step();exit;}
if(isset($_GET["SaveSettings"])){SaveSettings();exit;}
if(isset($_GET["Cancel"])){Cancel();exit;}



function Cancel(){
	$sock=new sockets();
	$sock->SET_INFO("SmtpWizardFinish",1);		
	
}


function page_0(){
	$html="
	<p class=caption>{wizard_smtp_intro}</p>";
	echo BuildPage('{welcome_first_wizard}',$html);
	
}