...
 
Commits (2)
  • RemyD's avatar
    1.7.3.0 · aa01c722
    RemyD authored
    aa01c722
  • RemyD's avatar
    · 7a69c949
    RemyD authored
    1.7.3.1
    7a69c949
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
$app->auth->check_module_permissions('Exchange');
$myid=($_REQUEST['act']);
if (isset($myid)) {
global $app, $_DB_ACT_TBL , $_DB_USR_TBL, $_DB_GRP_TBL, $_DB_OU_TBL, $_DB_CTC_TBL, $_DB_ABP_TBL,$_INS_METHOD ;
if($_SESSION["s"]["user"]["typ"] == 'admin') {
$app->db->query('update '.$_DB_ACT_TBL.' set status=0 where id="' .$myid. '"');
}
}
header('location: Actions_list.php');
?>
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
$app->auth->check_module_permissions('Exchange');
$myid=($_REQUEST['act']);
if (isset($myid)) {
global $app, $_DB_ACT_TBL , $_DB_USR_TBL, $_DB_GRP_TBL, $_DB_OU_TBL, $_DB_CTC_TBL, $_DB_ABP_TBL,$_INS_METHOD ;
if($_SESSION["s"]["user"]["typ"] == 'admin') {
$app->db->query('update '.$_DB_ACT_TBL.' set status=0 where id="' .$myid. '"');
}
}
header('location: Actions_list.php');
?>
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Actions_Type.list.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->SQLOrderBy = 'ORDER BY id desc';
$list->onLoad();
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Actions_Type.list.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->SQLOrderBy = 'ORDER BY id desc';
$list->onLoad();
?>
\ No newline at end of file
<?php
$tform_def_file = "form/Actions_Type.tform.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$app->auth->check_module_permissions('Exchange');
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_Actions_Type_details.lng';
include($lng_file);
class page_action extends tform_actions {
function onShowNew() {
global $app, $conf, $wb;
$app->tpl->setVar($wb);
parent::onShowNew();
}
}
$page = new page_action;
$page->onLoad();
<?php
$tform_def_file = "form/Actions_Type.tform.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$app->auth->check_module_permissions('Exchange');
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_Actions_Type_details.lng';
include($lng_file);
class page_action extends tform_actions {
function onShowNew() {
global $app, $conf, $wb;
$app->tpl->setVar($wb);
parent::onShowNew();
}
}
$page = new page_action;
$page->onLoad();
?>
\ No newline at end of file
<?php
$tform_def_file = "form/Actions.tform.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
$app->auth->check_module_permissions('Exchange');
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_Actions_details.lng';
include($lng_file);
class page_action extends tform_actions {
function onShowNew() {
global $app, $conf, $wb;
$app->tpl->setVar($wb);
parent::onShowNew();
}
function onShowEnd() {
global $app, $conf, $wb;
global $_DB_ACT_TBL ,
$_DB_USR_TBL,$_DB_GRP_TBL,
$_DB_OU_TBL,$_DB_CTC_TBL, $_DB_SALT ;
if ($this->dataRecord['TypeAction']=='33') {
$pass= base64_decode($this->dataRecord['Param3']);
$query="select AES_DECRYPT('".$pass ."','".$_DB_SALT."') as encode";
$res=$app->db->queryOneRecord($query);
$passdecode=$res['encode'];
//$this->dataRecord['Param3'] =$pass;
$app->tpl->setVar('Param3',$passdecode);
}
$app->tpl->setVar($wb);
parent::onShowEnd();
}
}
$page = new page_action;
$page->onLoad();
<?php
$tform_def_file = "form/Actions.tform.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
$app->auth->check_module_permissions('Exchange');
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_Actions_details.lng';
include($lng_file);
class page_action extends tform_actions {
function onShowNew() {
global $app, $conf, $wb;
$app->tpl->setVar($wb);
parent::onShowNew();
}
function onShowEnd() {
global $app, $conf, $wb;
global $_DB_ACT_TBL ,
$_DB_USR_TBL,$_DB_GRP_TBL,
$_DB_OU_TBL,$_DB_CTC_TBL, $_DB_SALT ;
if ($this->dataRecord['TypeAction']=='33') {
$pass= base64_decode($this->dataRecord['Param3']);
$query="select AES_DECRYPT('".$pass ."','".$_DB_SALT."') as encode";
$res=$app->db->queryOneRecord($query);
$passdecode=$res['encode'];
//$this->dataRecord['Param3'] =$pass;
$app->tpl->setVar('Param3',$passdecode);
}
$app->tpl->setVar($wb);
parent::onShowEnd();
}
}
$page = new page_action;
$page->onLoad();
?>
\ No newline at end of file
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Actions.list.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->SQLOrderBy = 'ORDER BY id desc';
$list->onLoad();
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Actions.list.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->SQLOrderBy = 'ORDER BY id desc';
$list->onLoad();
?>
\ No newline at end of file
<?php
$list_def_file = "list/Contacts.list.php";
$tform_def_file = "form/Contacts.tform.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
class page_action extends tform_actions {
function onBeforeDelete() {
global $app; $conf;
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
$myoldrecords= $app->tform->getDataRecord($this->id);
$guid = $myoldrecords['GUID'];
$org= $myoldrecords['extensionAttribute1'];
$upn = $myoldrecords['displayName'];
if (isset($this->id) ) {
$act = new action($guid,$this->id,$upn,'','','',24,$org);
$sql=$act->getSQL();
$app->db->query($sql);
unset($sql);
unset ($act);
}
}
}
$page = new page_action;
$page->onDelete();
<?php
$list_def_file = "list/Contacts.list.php";
$tform_def_file = "form/Contacts.tform.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
class page_action extends tform_actions {
function onBeforeDelete() {
global $app; $conf;
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
$myoldrecords= $app->tform->getDataRecord($this->id);
$guid = $myoldrecords['GUID'];
$org= $myoldrecords['extensionAttribute1'];
$upn = $myoldrecords['displayName'];
if (isset($this->id) ) {
$act = new action($guid,$this->id,$upn,'','','',24,$org);
$sql=$act->getSQL();
$app->db->query($sql);
unset($sql);
unset ($act);
}
}
}
$page = new page_action;
$page->onDelete();
?>
\ No newline at end of file
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Contacts.list.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->SQLOrderBy = 'ORDER BY Status desc, name asc';
$list->onLoad();
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Contacts.list.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->SQLOrderBy = 'ORDER BY Status desc, name asc';
$list->onLoad();
?>
\ No newline at end of file
<?php
$list_def_file = "list/Statistics.list.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
function onShowEnd() {
global $app, $conf, $wb;
global $_DB_ACT_TBL ,
$_DB_USR_TBL,
$_DB_GRP_TBL,
$_DB_OU_TBL,
$_DB_CTC_TBL,
$_DB_ABP_TBL,
$_INS_METHOD ;
// Getting stats for All Organizations
$groupid =$_SESSION['s']['user']['groups'];
// Getting Clients of the user
if($_SESSION["s"]["user"]["typ"] == 'admin') {
// total account
$sql_mbx="select count(*) as Nombre , R.ExchangeValue as Value from ".$_DB_USR_TBL." A, AD_HOSTED_RecipientTypeDetails R where A.msExchRecipientTypeDetails = R.Type group by A.msExchRecipientTypeDetails";
$sql_group="Select count(*) as Nombre from ".$_DB_GRP_TBL;
$sql_cont="Select count(*) as Nombre from ".$_DB_CTC_TBL;
} else {
// total account for this groupID
$sql_mbx="Select count(*) as Nombre , R.ExchangeValue as Value from ".$_DB_USR_TBL." A,AD_HOSTED_RecipientTypeDetails R WHERE A.sys_groupid in (". $groupid . ") AND A.msExchRecipientTypeDetails = R.Type group by A.msExchRecipientTypeDetails";
$sql_group="Select count(*) as Nombre from ".$_DB_GRP_TBL." A WHERE A.sys_groupid in (". $groupid . ")";
$sql_cont="Select count(*) as Nombre from ".$_DB_CTC_TBL." A WHERE A.sys_groupid in (". $groupid . ") ";
}
// List mbx stats
$mbxs = $app->db->queryAllRecords($sql_mbx);
$name_table="name";
$class1="tbl_row_even";
$class2="tbl_row_uneven";
$table_mbx_nbr =0;
$thisclass=$class1;
if(is_array($mbxs)) {
foreach( $mbxs as $mbx) {
$table_mbx.="<tr class='".$thisclass."'><td class='tbl_col_name' >".$mbx["Name"] ."</td><td class='tbl_col_".$name_table."' >".$mbx["Value"]."</td><td class='tbl_col_".$name_table."' >".$mbx["Nombre"]."</td></tr>";
if ($thisclass ==$class1) { $thisclass=$class2;} else {$thisclass=$class1;}
$table_mbx_nbr= $table_mbx_nbr+$mbx["Nombre"];
}
}
$app->tpl->setVar("mailbox_table",$table_mbx);
$app->tpl->setVar("mailbox_table_total",$table_mbx_nbr);
unset($mbxs);
// List groups stats
$mbxs = $app->db->queryAllRecords($sql_group);
$name_table="group";
$table_grp_nbr=0;
if(is_array($mbxs)) {
foreach( $mbxs as $mbx) {
$table_grp.="<tr class='".$thisclass."'><td class='tbl_col_name' >".$mbx["Name"] ."</td><td></td><td class='tbl_col_".$name_table."' >".$mbx["Nombre"]."</td></tr>";
if ($thisclass ==$class1) { $thisclass=$class2;} else {$thisclass=$class1;}
$table_grp_nbr=$table_grp_nbr+$mbx["Nombre"];
}
}
$app->tpl->setVar("group_table",$table_grp);
$app->tpl->setVar("group_table_total",$table_grp_nbr);
unset($mbxs);
// List contacts stats
$mbxs = $app->db->queryAllRecords($sql_cont);
$name_table="contact";
$table_contacts_nbr=0;
if(is_array($mbxs)) {
//$table_ct='<table class="list" name="'.$name_table.'"><th > '.$name_table.'</th><th>Nombre</th>';
foreach( $mbxs as $mbx) {
$table_ct.="<tr class='".$thisclass."'><td class='tbl_col_name' >".$mbx["Name"] ."</td><td></td><td class='tbl_col_".$name_table."' >".$mbx["Nombre"]."</td></tr>";
if ($thisclass ==$class1) { $thisclass=$class2;} else {$thisclass=$class1;}
$table_contacts_nbr=$table_contacts_nbr+$mbx["Nombre"];
}
}
$app->tpl->setVar("contact_table",$table_ct);
$app->tpl->setVar("contact_table_total",$table_contacts_nbr);
unset($mbxs);
$app->tpl->setVar($wb);
parent::onShowEnd();
}
}
$list = new list_action;
$list->onLoad();
<?php
$list_def_file = "list/Statistics.list.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
function onShowEnd() {
global $app, $conf, $wb;
global $_DB_ACT_TBL ,
$_DB_USR_TBL,
$_DB_GRP_TBL,
$_DB_OU_TBL,
$_DB_CTC_TBL,
$_DB_ABP_TBL,
$_INS_METHOD ;
// Getting stats for All Organizations
$groupid =$_SESSION['s']['user']['groups'];
// Getting Clients of the user
if($_SESSION["s"]["user"]["typ"] == 'admin') {
// total account
$sql_mbx="select count(*) as Nombre , R.ExchangeValue as Value from ".$_DB_USR_TBL." A, AD_HOSTED_RecipientTypeDetails R where A.msExchRecipientTypeDetails = R.Type group by A.msExchRecipientTypeDetails";
$sql_group="Select count(*) as Nombre from ".$_DB_GRP_TBL;
$sql_cont="Select count(*) as Nombre from ".$_DB_CTC_TBL;
} else {
// total account for this groupID
$sql_mbx="Select count(*) as Nombre , R.ExchangeValue as Value from ".$_DB_USR_TBL." A,AD_HOSTED_RecipientTypeDetails R WHERE A.sys_groupid in (". $groupid . ") AND A.msExchRecipientTypeDetails = R.Type group by A.msExchRecipientTypeDetails";
$sql_group="Select count(*) as Nombre from ".$_DB_GRP_TBL." A WHERE A.sys_groupid in (". $groupid . ")";
$sql_cont="Select count(*) as Nombre from ".$_DB_CTC_TBL." A WHERE A.sys_groupid in (". $groupid . ") ";
}
// List mbx stats
$mbxs = $app->db->queryAllRecords($sql_mbx);
$name_table="name";
$class1="tbl_row_even";
$class2="tbl_row_uneven";
$table_mbx_nbr =0;
$thisclass=$class1;
if(is_array($mbxs)) {
foreach( $mbxs as $mbx) {
$table_mbx.="<tr class='".$thisclass."'><td class='tbl_col_name' >".$mbx["Name"] ."</td><td class='tbl_col_".$name_table."' >".$mbx["Value"]."</td><td class='tbl_col_".$name_table."' >".$mbx["Nombre"]."</td></tr>";
if ($thisclass ==$class1) { $thisclass=$class2;} else {$thisclass=$class1;}
$table_mbx_nbr= $table_mbx_nbr+$mbx["Nombre"];
}
}
$app->tpl->setVar("mailbox_table",$table_mbx);
$app->tpl->setVar("mailbox_table_total",$table_mbx_nbr);
unset($mbxs);
// List groups stats
$mbxs = $app->db->queryAllRecords($sql_group);
$name_table="group";
$table_grp_nbr=0;
if(is_array($mbxs)) {
foreach( $mbxs as $mbx) {
$table_grp.="<tr class='".$thisclass."'><td class='tbl_col_name' >".$mbx["Name"] ."</td><td></td><td class='tbl_col_".$name_table."' >".$mbx["Nombre"]."</td></tr>";
if ($thisclass ==$class1) { $thisclass=$class2;} else {$thisclass=$class1;}
$table_grp_nbr=$table_grp_nbr+$mbx["Nombre"];
}
}
$app->tpl->setVar("group_table",$table_grp);
$app->tpl->setVar("group_table_total",$table_grp_nbr);
unset($mbxs);
// List contacts stats
$mbxs = $app->db->queryAllRecords($sql_cont);
$name_table="contact";
$table_contacts_nbr=0;
if(is_array($mbxs)) {
//$table_ct='<table class="list" name="'.$name_table.'"><th > '.$name_table.'</th><th>Nombre</th>';
foreach( $mbxs as $mbx) {
$table_ct.="<tr class='".$thisclass."'><td class='tbl_col_name' >".$mbx["Name"] ."</td><td></td><td class='tbl_col_".$name_table."' >".$mbx["Nombre"]."</td></tr>";
if ($thisclass ==$class1) { $thisclass=$class2;} else {$thisclass=$class1;}
$table_contacts_nbr=$table_contacts_nbr+$mbx["Nombre"];
}
}
$app->tpl->setVar("contact_table",$table_ct);
$app->tpl->setVar("contact_table_total",$table_contacts_nbr);
unset($mbxs);
$app->tpl->setVar($wb);
parent::onShowEnd();
}
}
$list = new list_action;
$list->onLoad();
?>
\ No newline at end of file
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/Expire.list.php";
/******************************************
* End Form configuration
******************************************/
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
// Check Expirations DELAY
$list->SQLExtWhere = "(STR_TO_DATE(pwdLastSet,'%d.%m.%Y %h:%i:%s') < DATE_ADD(NOW() , INTERVAL -35 DAY )) and UserAccountControl in ( select UserAccountControl from AD_HOSTED_AccountControl where expire=1) ";
$list->SQLOrderBy = 'ORDER BY Status desc, displayName asc';
$list->onLoad();
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/Expire.list.php";
/******************************************
* End Form configuration
******************************************/
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
// Check Expirations DELAY
$list->SQLExtWhere = "(STR_TO_DATE(pwdLastSet,'%d.%m.%Y %h:%i:%s') < DATE_ADD(NOW() , INTERVAL -35 DAY )) and UserAccountControl in ( select UserAccountControl from AD_HOSTED_AccountControl where expire=1) ";
$list->SQLOrderBy = 'ORDER BY Status desc, displayName asc';
$list->onLoad();
?>
\ No newline at end of file
<?php
$list_def_file = "list/Groups.list.php";
$tform_def_file = "form/Groups.tform.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
class page_action extends tform_actions {
function onBeforeDelete() {
global $app; $conf;
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
$myoldrecords= $app->tform->getDataRecord($this->id);
$guid = $myoldrecords['GUID'];
$org= $myoldrecords['extensionAttribute1'];
$upn = $myoldrecords['displayName'];
if (isset($this->id) ) {
$act = new action($guid,$this->id,$upn,'','','',23,$org);
$sql=$act->getSQL();
$app->db->query($sql);
unset($sql);
unset ($act);
}
}
}
$page = new page_action;
$page->onDelete();
<?php
$list_def_file = "list/Groups.list.php";
$tform_def_file = "form/Groups.tform.php";
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
class page_action extends tform_actions {
function onBeforeDelete() {
global $app; $conf;
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
$myoldrecords= $app->tform->getDataRecord($this->id);
$guid = $myoldrecords['GUID'];
$org= $myoldrecords['extensionAttribute1'];
$upn = $myoldrecords['displayName'];
if (isset($this->id) ) {
$act = new action($guid,$this->id,$upn,'','','',23,$org);
$sql=$act->getSQL();
$app->db->query($sql);
unset($sql);
unset ($act);
}
}
}
$page = new page_action;
$page->onDelete();
?>
\ No newline at end of file
This diff is collapsed.
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/Groups.list.php";
/******************************************
* End Form configuration
******************************************/
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->onLoad();
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/Groups.list.php";
/******************************************
* End Form configuration
******************************************/
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->onLoad();
?>
\ No newline at end of file
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Groups.list.export.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
function onShowEnd() {
global $app;
$app->tpl_defaults();
//remove pagging
$app->tpl->setVar("paging",'');
$app->tpl->pparse();
//$app->tpl->pprint();
}
}
$list = new list_action;
$list->onLoad();
$filesname="export-groups.xls";
$file='filename="'.$filesname.'"';
header("Content-disposition: attachment;".$file );
header("Content-type: application/vnd.ms-excel; name='excel'");
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Groups.list.export.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
function onShowEnd() {
global $app;
$app->tpl_defaults();
//remove pagging
$app->tpl->setVar("paging",'');
$app->tpl->pparse();
//$app->tpl->pprint();
}
}
$list = new list_action;
$list->onLoad();
$filesname="export-groups.xls";
$file='filename="'.$filesname.'"';
header("Content-disposition: attachment;".$file );
header("Content-type: application/vnd.ms-excel; name='excel'");
?>
\ No newline at end of file
<?php
$list_def_file = "list/Organizations.list.php";
$tform_def_file = "form/Organizations.tform.php";
require_once('../Exchange/lib/class.csti.php');
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
class page_action extends tform_actions {
function onBeforeDelete() {
global $app; $conf;
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
// get ABP_GUID
//$ABP_GUID = $app->db->queryOneRecord("select ABP_GUID from ".$_DB_OU_TBL." where GUID='".$this->dataRecord['GUID'] ."'");
$act = new action($this->dataRecord['GUID'],$this->id, $this->dataRecord['name'], $this->dataRecord['uPNSuffixes'],'','',21,$this->dataRecord['name']);
$sql=$act->getSQL();
$app->db->query($sql);
unset($sql);
unset ($act);
$sql1="DELETE from AD_HOSTED_ABP where GUID = (select ABP_GUID from AD_HOSTED_TENANTS where GUID='".$this->dataRecord['GUID'] ."' ) ";
$app->db->query($sql1);
}
}
$page = new page_action;
$page->onDelete();
<?php
$list_def_file = "list/Organizations.list.php";
$tform_def_file = "form/Organizations.tform.php";
require_once('../Exchange/lib/class.csti.php');
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
class page_action extends tform_actions {
function onBeforeDelete() {
global $app; $conf;
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
// get ABP_GUID
//$ABP_GUID = $app->db->queryOneRecord("select ABP_GUID from ".$_DB_OU_TBL." where GUID='".$this->dataRecord['GUID'] ."'");
$act = new action($this->dataRecord['GUID'],$this->id, $this->dataRecord['name'], $this->dataRecord['uPNSuffixes'],'','',21,$this->dataRecord['name']);
$sql=$act->getSQL();
$app->db->query($sql);
unset($sql);
unset ($act);
$sql1="DELETE from AD_HOSTED_ABP where GUID = (select ABP_GUID from AD_HOSTED_TENANTS where GUID='".$this->dataRecord['GUID'] ."' ) ";
$app->db->query($sql1);
}
}
$page = new page_action;
$page->onDelete();
?>
\ No newline at end of file
This diff is collapsed.
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Organizations.list.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->SQLOrderBy = 'ORDER BY Status desc, name asc';
$list->onLoad();
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
$list_def_file = "list/Organizations.list.php";
$app->auth->check_module_permissions('Exchange');
$app->uses('listform_actions');
class list_action extends listform_actions {
}
$list = new list_action;
$list->SQLOrderBy = 'ORDER BY Status desc, name asc';
$list->onLoad();
?>
\ No newline at end of file
<?php
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/Organizations.list.php";
$tform_def_file = "form/Organizations.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
class page_action extends tform_actions {
function onLoad() {
global $app; $conf;
global
$_DB_OU_TBL ;
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
$app->db->query("UPDATE ".$_DB_OU_TBL." SET whenChanged='' where GUID='" . $_REQUEST["id"] . "'");
}
}
$page = new page_action;
$page->onLoad();
header('Location: Organizations_list.php');
exit();
<?php
/******************************************
* Begin Form configuration
******************************************/
$list_def_file = "list/Organizations.list.php";
$tform_def_file = "form/Organizations.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
class page_action extends tform_actions {
function onLoad() {
global $app; $conf;
global
$_DB_OU_TBL ;
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
$app->db->query("UPDATE ".$_DB_OU_TBL." SET whenChanged='' where GUID='" . $_REQUEST["id"] . "'");
}
}
$page = new page_action;
$page->onLoad();
header('Location: Organizations_list.php');
exit();
?>
\ No newline at end of file
<?php
/******************************************
* Begin Form configuration
******************************************/
$tform_def_file = "form/Organizations.upn.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
class page_action extends tform_actions {
function onShowNew() {
global $app, $conf, $wb;
parent::onShowNew();
}
function onShowEnd() {
global $app, $conf;
parent::onShowEnd();
}
function onSubmit() {
global $app, $conf, $wb;
parent::onSubmit();
}
function onBeforeUpdate(){
global $app, $conf, $wb;
$app->tpl->setVar($wb);
// lower new Domin Name
$NewUpn =$this->dataRecord["NewUpn"];
if(isset($NewUpn)) {
$NewUpn = strtolower($this->dataRecord["NewUpn"]);
$regex = '/^[\w\.\-\/]{2,255}\.[a-zA-Z0-9\-]{2,30}[\.]{0,1}$/';
if (preg_match($regex, $NewUpn)) {
$record=$app->tform->getDataRecord($this->id);
$act = new action($record['GUID'],$this->id,'uPNSuffixes', $NewUpn,'','',14,$this->dataRecord['name']);
$sql=$act->getSQL();
$app->db->query($sql);
unset($sql);
unset ($act);
$this->dataRecord = $reccord;
unset($record);
} else {
// not good
$app->error('Domain Name Invalid Format: <br>' .$NewUpn . '<br>' ,'/',TRUE);
}
}
}
}
$page = new page_action;
$page->onLoad();
<?php
/******************************************
* Begin Form configuration
******************************************/
$tform_def_file = "form/Organizations.upn.tform.php";
/******************************************
* End Form configuration
******************************************/
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
require_once('../Exchange/lib/class.csti.php');
//* Check permissions for module
$app->auth->check_module_permissions('Exchange');
// Loading classes
$app->uses('tpl,tform,tform_actions');
$app->load('tform_actions');
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng';
include($lng_file);
class page_action extends tform_actions {
function onShowNew() {
global $app, $conf, $wb;
parent::onShowNew();
}
function onShowEnd() {
global $app, $conf;
parent::onShowEnd();
}
function onSubmit() {
global $app, $conf, $wb;
parent::onSubmit();
}
function onBeforeUpdate(){
global $app, $conf, $wb;
$app->tpl->setVar($wb);
// lower new Domin Name
$NewUpn =$this->dataRecord["NewUpn"];
if(isset($NewUpn)) {
$NewUpn = strtolower($this->dataRecord["NewUpn"]);
$regex = '/^[\w\.\-\/]{2,255}\.[a-zA-Z0-9\-]{2,30}[\.]{0,1}$/';
if (preg_match($regex, $NewUpn)) {
$record=$app->tform->getDataRecord($this->id);
$act = new action($record['GUID'],$this->id,'uPNSuffixes', $NewUpn,'','',14,$this->dataRecord['name']);
$sql=$act->getSQL();
$app->db->query($sql);
unset($sql);
unset ($act);
$this->dataRecord = $reccord;
unset($record);
} else {
// not good
$app->error('Domain Name Invalid Format: <br>' .$NewUpn . '<br>' ,'/',TRUE);
}
}
}
}
$page = new page_action;
$page->onLoad();
?>
\ No newline at end of file
# ISPCONFIG Module EXCHANGE
## Code repositery
[GIT Server](https://git.csti.ch)
[CSTI SA ](https://www.csti.ch)
## Contacts
* [Facebook Company Page](https://www.facebook.com/CSTI.SA.CH)
* [LinkedIn Company Page](https://www.linkedin.com/company/csti-sa)
* [Twitter Company Page](https://www.twitter.com/CSTI_SA)
## Application details
This application is an Add-ons for ISPConfig used for MS Exchange management users, contacts, groups, tenants and more.
There is 2 level of security :
* Admin
* Users
In details, users can manage objects into a single or multiple tenant environment.
Admin can manage all objects.
## Requirements
* ISPConfig 3.1.2
* mysql database (it's also a requirement for ISPConfig)
* Windows Active directory server (2008 R2), MS Exchange server (2010 sp2 min)
* AdSynchro Service (CSTI SA Service Project for Active Directory Interface , version 1.7.0 or later)
## Contribute
You can create an account on our git server, for development, testing or anythings else.
For creating an account, you can send us a request (use our website www.csti.ch) under contact.
## License
Copyright (c) 2017, CSTI SA
All rights reserved.
You are free to ditribute this module, but all changes without our consent is prohibited.
Please also note that any update will erase all files.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
RELEASE NOTES :
==============
Version 1.7.2 :
---------------
Minor version with some news:
Add mobile devices view (Beta for admin only)
Multiple corrected bugs
Version 1.7.0 :
---------------
Add Strong Encryption for Password protection
Add support for ISPConfig 3.1.2 Lot of code changes)
Fix multiple bug in interface
Better integration with AdSynchro Service (multiple code fix)
Note :
------
you need to change the DB_SALT Key in lib/class.csti.php
you need to put the same key on the Windows Registry : under CSTI\\ActiveDirectorySync\\Exchange\\SALT
Version 1.6.0 :
---------------
Add Migration status for Organization
Clean Up code.
Fix multiple bugs.
Version 1.5.0 :
---------------
Add detailled and summariezd view of stats.
Clean Up code.
Fix multiple bugs.
Version 1.4.9 :
---------------
Add filter on each page (to be completed) for display N elements.
Clean Up code.
Fix multiple bugs.
Version 1.4.8 :
---------------
Stats Users : Add reporting
Clean Up code.
Fix multiple bugs.
Change menu ordering.
Version 1.4.7 :
---------------
Group & Users : Add reporting
Clean Up code.
Fix multiple bugs.
Version 1.4.6 :
---------------
Security : Add multiple checks, remove some vulnerability.
Security : Add page for checking Permissions.
Users : Remove option for deleting Account (Admin always can remove users)
Clean Up code.
Fix minor bugs.
Version 1.4.5 :
---------------
Users : Add foward and deliver option
Clean Up code.
Fix display bug (setup).
Version 1.4.4 :
---------------
Security :
Improve security by integration of a new class for specific query
Centralize configuration for the module
Clean up code.
Admin :
Setup : Verify installed version, and check for updated
Setup : Create tables, and all needed records
Translate : Add pages for specific translated (Actions Type, EN and FR)
Bug Fix :
See all fixed issues affected (1.4.4.4)
Version 1.4.3 :
---------------
Groups :
Now you can hidde a group, in the Global Address List
Users :
Now you can hide a user, in the Global Address List
Contacts :
Some display bugs corrected .
Version 1.4.2 :
---------------
Groups :
status = 2 => block all inputs (Save button locked, and all input on read-only mode)
Now the list of users to add to the group is filtering users that are already in the group
Users :
status = 2 => block all inputs (Save button locked, and all input on read-only mode)
Add a field called member of for adding the user to a group.
Add the login address field
Contacts :
Ajout d'un filtre pour ne pas ajouter ce contact dans un groupe dont il est déjà membre
status = 2 => block all inputs (Save button locked, and all input on read-only mode)
# ISPCONFIG Module EXCHANGE
## Code repositery
[GIT Server](https://git.csti.ch)
[CSTI SA ](https://www.csti.ch)
## Contacts
* [Facebook Company Page](https://www.facebook.com/CSTI.SA.CH)
* [LinkedIn Company Page](https://www.linkedin.com/company/csti-sa)
* [Twitter Company Page](https://www.twitter.com/CSTI_SA)
## Application details
This application is an Add-ons for ISPConfig used for MS Exchange management users, contacts, groups, tenants and more.
There is 2 level of security :
* Admin
* Users
In details, users can manage objects into a single or multiple tenant environment.
Admin can manage all objects.
## Requirements
* ISPConfig 3.1.2
* mysql database (it's also a requirement for ISPConfig)
* Windows Active directory server (2008 R2), MS Exchange server (2010 sp2 min)
* AdSynchro Service (CSTI SA Service Project for Active Directory Interface , version 1.7.0 or later)
## Contribute
You can create an account on our git server, for development, testing or anythings else.
For creating an account, you can send us a request (use our website www.csti.ch) under contact.
## License
Copyright (c) 2017, CSTI SA
All rights reserved.
You are free to ditribute this module, but all changes without our consent is prohibited.
Please also note that any update will erase all files.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
RELEASE NOTES :
==============
Version 1.7.2 :
---------------
Minor version with some news:
Add mobile devices view (Beta for admin only)
Multiple corrected bugs
Version 1.7.0 :
---------------
Add Strong Encryption for Password protection
Add support for ISPConfig 3.1.2 Lot of code changes)
Fix multiple bug in interface
Better integration with AdSynchro Service (multiple code fix)
Note :
------
you need to change the DB_SALT Key in lib/class.csti.php
you need to put the same key on the Windows Registry : under CSTI\\ActiveDirectorySync\\Exchange\\SALT
Version 1.6.0 :
---------------
Add Migration status for Organization
Clean Up code.
Fix multiple bugs.
Version 1.5.0 :
---------------
Add detailled and summariezd view of stats.
Clean Up code.
Fix multiple bugs.
Version 1.4.9 :
---------------
Add filter on each page (to be completed) for display N elements.
Clean Up code.
Fix multiple bugs.
Version 1.4.8 :
---------------
Stats Users : Add reporting
Clean Up code.
Fix multiple bugs.
Change menu ordering.
Version 1.4.7 :
---------------
Group & Users : Add reporting
Clean Up code.
Fix multiple bugs.
Version 1.4.6 :
---------------
Security : Add multiple checks, remove some vulnerability.
Security : Add page for checking Permissions.
Users : Remove option for deleting Account (Admin always can remove users)
Clean Up code.
Fix minor bugs.
Version 1.4.5 :
---------------
Users : Add foward and deliver option
Clean Up code.
Fix display bug (setup).
Version 1.4.4 :
---------------
Security :
Improve security by integration of a new class for specific query
Centralize configuration for the module
Clean up code.
Admin :
Setup : Verify installed version, and check for updated
Setup : Create tables, and all needed records
Translate : Add pages for specific translated (Actions Type, EN and FR)
Bug Fix :
See all fixed issues affected (1.4.4.4)
Version 1.4.3 :
---------------
Groups :
Now you can hidde a group, in the Global Address List
Users :
Now you can hide a user, in the Global Address List
Contacts :
Some display bugs corrected .
Version 1.4.2 :
---------------
Groups :
status = 2 => block all inputs (Save button locked, and all input on read-only mode)
Now the list of users to add to the group is filtering users that are already in the group
Users :
status = 2 => block all inputs (Save button locked, and all input on read-only mode)
Add a field called member of for adding the user to a group.
Add the login address field
Contacts :
Ajout d'un filtre pour ne pas ajouter ce contact dans un groupe dont il est déjà membre
status = 2 => block all inputs (Save button locked, and all input on read-only mode)
\ No newline at end of file
<?php
$list_def_file = "list/Statistics.list.php";
req