summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1430b94)
raw | patch | inline | side by side (parent: 1430b94)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Sep 2007 15:47:12 +0000 (15:47 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Sep 2007 15:47:12 +0000 (15:47 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7337 594d385d-05f5-0310-b6e9-bd551577e9d8
62 files changed:
diff --git a/html/password.php b/html/password.php
index 5348a4531a1931764952d8cc03bc209b21491465..29e1edbf22b789a39b134a025a0d442bc33ef6bb 100644 (file)
--- a/html/password.php
+++ b/html/password.php
/* Do we have the selected user somewhere? */
$ui= ldap_login_user ($uid, $current_password);
- if ($ui == NULL){
+ if ($ui === NULL){
$message[]= _("Please check the username/password combination.");
} else {
$acls = $ui->get_permissions($ui->dn,"users/password");
index e16945b88eb1415d26b23a78da6a8d3d11b8405b..d8d28684e18860b91da9267f428fd5bc162503bb 100644 (file)
--- a/include/class_config.inc
+++ b/include/class_config.inc
function load_servers ()
{
/* Only perform actions if current is set */
- if ($this->current == NULL){
+ if ($this->current === NULL){
return;
}
diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index dbc76f585ff3c245ec0fedaa80f01c740812376f..17ae13ff4071b267c4f606dbe63bf5e69bfc1197 100644 (file)
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
$url= preg_replace('!\?\?.*$!', '', $url);
$server= preg_replace('!^([^:]+://[^/]+)/.*$!', '\\1', $url);
- if ($referrals == NULL){
+ if ($referrals === NULL){
$referrals= $this->referrals;
}
index 6be4321c646abd83be903ef8b2d94175985ac602..b4b36269f4a8bf8d2bd8817bd278f20727f8ce85 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
/* Get LDAP descriptor */
$ldap= $this->config->get_ldap_link();
- if ($dn != NULL){
+ if ($dn !== NULL){
/* Load data to 'attrs' and save 'dn' */
if ($parent !== NULL){
index 8c3ae9969804e73d1ce49fb28448e973096ffc34..6321d8644515c7fad4950bbde5777fe87220eb86 100644 (file)
$zone = array("name" => "unconfigured", "value" => 0);
/* Use current timestamp if $stamp is not set */
- if($stamp == NULL){
+ if($stamp === NULL){
$stamp = time();
}
diff --git a/include/functions.inc b/include/functions.inc
index 7532e479af6e4eb5354ff56bf20135d9c54e0f15..c27314d87da3b01cd51b7709f5aaeef3b2aa75e0 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* Try to use users primary language */
global $config;
$ui= get_userinfo();
- if ($ui != NULL){
+ if ($ui !== NULL){
if ($ui->language != ""){
return ($ui->language.".UTF-8");
}
$_SESSION['errorsAlreadyPosted'][$string]++;
}else{
- if($string != NULL){
+ if($string !== NULL){
if (preg_match("/"._("LDAP error:")."/", $string)){
$addmsg= _("Problems with the LDAP server mean that you probably lost the last changes. Please check your LDAP setup for possible errors and try again.");
$img= "images/error.png";
$keep = ""; // save last failed parse string
/* Check each parsed dn in ldap ? */
- if($config!=NULL && $verify_in_ldap){
+ if($config!==NULL && $verify_in_ldap){
$ldap = $config->get_ldap_link();
}
$called = true;
/* Check if current dn is valid */
- if($ldap!=NULL){
+ if($ldap!==NULL){
$ldap->cd($dn);
$ldap->cat($dn,array("dn"));
if($ldap->count()){
diff --git a/include/sieve/class_sieveElement_Comment.inc b/include/sieve/class_sieveElement_Comment.inc
index c3e126cece5bad41f1281fd3d508110b3a715bde..deaa4f3120ba68ca16e18555117fdbb33c32b929 100644 (file)
{
$this->object_id = $object_id;
- if($data == NULL){
+ if($data === NULL){
$data = array('ELEMENTS' => array(array('class' => "quoted-string" ,"text" => "/*"._("Your comment here")."*/")));
}
diff --git a/include/sieve/class_sieveElement_Fileinto.inc b/include/sieve/class_sieveElement_Fileinto.inc
index f357d37d96d961bd4e1ea2065d8468deb9f985b8..dc3923f416975220c45ca29944871f42343d8719 100644 (file)
$mbs = $this->get_mail_boxes();
/* Set the default mailbox */
- if($data == NULL){
+ if($data === NULL){
$data = array('ELEMENTS' => array(array('class' => "quoted-string" ,"text" => $mbs[key($mbs)])));
}
index acdcb94d5d6abd1b101abd8efcfb1010236d3fa7..cb33ae5e788e2fb09ac9a366613f5d698f026345 100644 (file)
"ne" => _("not equal"));
/* Skip parsing if this element is new */
- if($elements != NULL){
+ if($elements !== NULL){
/* Remove comments from tests */
$tmp = array();
}
$elements['ELEMENTS'] = $tmp;
- if($elements!=NULL){
+ if($elements!==NULL){
$this->elements = $elements;
$this->_parsed = $this->_parse($elements['ELEMENTS'],1);
}
function check_recursive($parsed = NULL,$id = 1,$obj_id=1)
{
$ret = array();
- if($parsed == NULL){
+ if($parsed === NULL){
$parsed = $this->_parsed;
}
- if($parsed == NULL) {
+ if($parsed === NULL) {
return(array(_("Can't save empty tests.")));
}
function get_sieve_script_part_recursive($parsed = NULL,$id = 1,$obj_id=1)
{
$script ="";
- if($parsed == NULL){
+ if($parsed === NULL){
$parsed = $this->_parsed;
}
{
/* Variable initialization */
$ret ="";
- if($parsed == NULL){
+ if($parsed === NULL){
$parsed = $this->_parsed;
}
function get_as_html($parsed = NULL,$id = 1,$obj_id=1)
{
$ret ="";
- if($parsed == NULL){
+ if($parsed === NULL){
$parsed = $this->_parsed;
}
diff --git a/include/sieve/class_sieveElement_Redirect.inc b/include/sieve/class_sieveElement_Redirect.inc
index 33ebeb05daec713c1d97a581b86f17873f988d86..64e71b6f8bba0c88a5255be7681add920154da20 100644 (file)
{
$this->object_id = $object_id;
- if($data == NULL){
+ if($data === NULL){
$data = array('ELEMENTS' => array(array('class' => "quoted-string" ,"text" => _("Place a mail address here"))));
}
diff --git a/include/sieve/class_sieveElement_Reject.inc b/include/sieve/class_sieveElement_Reject.inc
index baa100449d292fe32620f784a2d7ed2990a76a88..3f0726011826392cfdcd9215d0f51efc17c5abc1 100644 (file)
* (This is the case when we add new elements in the ui)
* Set a default text.
*/
- if($data == NULL){
+ if($data === NULL){
$this->data = _("Your reject text here");
}else{
diff --git a/include/sieve/class_sieveElement_Require.inc b/include/sieve/class_sieveElement_Require.inc
index 9ef9e2985849b2d1e92bcba2759a707bca0ceeaa..a9b68903439c090bafe1459c80d575df01d269b3 100644 (file)
{
$this->parent = $parent;
$this->object_id = $object_id;
- if($data != NULL){
+ if($data !== NULL){
for($i = 0 ; $i < count($data['ELEMENTS']) ; $i++){
$tmp = sieve_get_strings($data['ELEMENTS'],$i);
diff --git a/include/sieve/class_sieveElement_Vacation.inc b/include/sieve/class_sieveElement_Vacation.inc
index 0f6a7c6d31efa1f6a080c016195b9adab56a5230..43c7546377215877efee4065959c00d61d3a8980 100644 (file)
$known_attrs = array(":days",":subject",":from",":mime",":handle");
/* skip if empty */
- if(($data == NULL) || !is_array($data)) return;
+ if(($data === NULL) || !is_array($data)) return;
/* Walk through elements */
$p= count($data['ELEMENTS']);
index 37198f0cd803fc3545b7b1b9855b1c9587c131e8..d4bdfc764504a331cc2505da985ac5f296f6370c 100644 (file)
function setDumpFunc($callback)
{
- if ($callback == NULL || is_callable($callback))
+ if ($callback === NULL || is_callable($callback))
{
$this->dumpFn_ = $callback;
}
}
$node = $this->nodes_[$node_id];
- if ($this->dumpFn_ != NULL)
+ if ($this->dumpFn_ !== NULL)
{
$this->dump_ .= $prefix . $infix . call_user_func($this->dumpFn_, $node) . "\n";
}
}
}
-?>
\ No newline at end of file
+?>
diff --git a/plugins/addons/godfs/class_dfsManagment.inc b/plugins/addons/godfs/class_dfsManagment.inc
index 4b527643eb14349413eab352234e8769378a3275..913b2707e2e21cc0392c89240e47922670507fcb 100644 (file)
$treeMenu = new HTML_TreeMenu_DHTML($tree, array('images' => 'images', 'defaultClass' => 'treeMenuDefault'));
$tree_html = $treeMenu->toHTML();
- if ($this->dfstab == NULL) {
+ if ($this->dfstab === NULL) {
if (($message = check_sizelimit()) != "") {
return ($message);
diff --git a/plugins/addons/mailqueue/class_mailqueue.inc b/plugins/addons/mailqueue/class_mailqueue.inc
index 7d8762107d86f53cdd7e25e84af3e47bcdef0a5e..3e34bfc79299e55d51bb3af2f45791d55b261da8 100644 (file)
if($str = @$this->pass_cmd ($q_cmd)){
/* If there is no parser available, create one */
- if($mailQueueParser == NULL){
+ if($mailQueueParser === NULL){
$mailQueueParser = new parseMailQueue($str,$ServerID);
}else{
$mailQueueParser->parseAdditionalQueue($str,$ServerID);
index 3ac21586344cc3b59ebfc7df62bb378288af1395..7187e23308d9a569e58d519a505401d2bce3d8ff 100644 (file)
$this->by_name[$tab['CLASS']]= $tab['NAME'];
- if ($baseobject == NULL){
+ if ($baseobject === NULL){
if($tab['CLASS'] == "acl"){
$baseobject= new $tab['CLASS']($this->config, $this, $this->dn);
}else{
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index 5e8ee67da6f2a75ac760083caa3666cf2cb74c1a..875c269f18e791fe51bf55f9096404225a123d33 100644 (file)
}
/* Do we represent a valid group? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This 'dn' is no application.")."</b>";
return ($display);
diff --git a/plugins/admin/applications/class_applicationParameters.inc b/plugins/admin/applications/class_applicationParameters.inc
index af3d2d422e4eb37a89d4e1e5f67c6f68cf4d6a6d..c9f5d4241e3684c724312777c22e790ef58405b5 100644 (file)
/* Show tab dialog headers */
$display= "";
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove options"),
_("This application has options. You can disable them by clicking below."));
diff --git a/plugins/admin/departments/class_departmentManagement.inc b/plugins/admin/departments/class_departmentManagement.inc
index 4e426394adb4e9b4c72b50b0954ea574b5fae1a0..7628d3f0060f8a7d8180da0f8eb1cefbe4ab9964 100644 (file)
}
/* Headpage or normal plugin screen? */
- if ($this->deptabs != NULL){
+ if ($this->deptabs !== NULL){
/* Show main page (tabs) */
$display= $this->deptabs->execute();
index 8ea8a9028031d8c8ea516aef59c911022434de00..3ad80f9a58f4056db9dd17446999ce5581f771c6 100644 (file)
* Here we need both, save and cancel
*/
- if(($this->dialog != NULL) && (isset($this->dialog->config))){
+ if(($this->dialog !== NULL) && (isset($this->dialog->config))){
$display .= $this->dialog->execute();
/* Don't show buttons if tab dialog requests this */
index a14352d65d2eab959c0fafb4da78c05013fb5d2d..b2bd44049a4ef100be98e1f4f447f846e1ac5279 100644 (file)
/* Generate a list off available packages for this mirror, section and release
*/
/* Only read this file if it wasn't read before */
- if($this->buffer==NULL){
+ if($this->buffer === NULL){
$this->buffer=array();
$a_ret = array();
foreach($this->FAIdebianSection as $sec){
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index 5a2418c0588f14fa609bef4e2720ee7af1943602..a81f3de2fbff104e90f239479a628b94a97f6cc1 100644 (file)
}
/* Do we represent a valid group? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This 'dn' is no appgroup.")."</b>";
return ($display);
/* Show tab dialog headers */
$display= "";
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove applications"),
_("This group has application features enabled. You can disable them by clicking below."));
diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index aad633524e04bfe4717a8379c9c48a03b65d2ca6..36b46eae9c7b7410bd011d73a29c11c70ede96fc 100644 (file)
/* Is a samba group? */
if (isset($this->attrs['objectClass'])){
- if (array_search ('sambaGroupMapping', $this->attrs['objectClass']) == NULL ){
+ if (array_search ('sambaGroupMapping', $this->attrs['objectClass']) === NULL ){
$this->smbgroup= FALSE;
} else {
$this->smbgroup= TRUE;
$this->sambaSID= $this->attrs['sambaSID'][0];
}
}
- if (array_search ('goFonPickupGroup', $this->attrs['objectClass']) == NULL ){
+ if (array_search ('goFonPickupGroup', $this->attrs['objectClass']) === NULL ){
$this->fon_group= FALSE;
} else {
$this->fon_group= TRUE;
}
- if (array_search ('nagiosContactGroup', $this->attrs['objectClass']) == NULL ){
+ if (array_search ('nagiosContactGroup', $this->attrs['objectClass']) === NULL ){
$this->nagios_group= FALSE;
} else {
$this->nagios_group= TRUE;
}
/* Do we represent a valid group? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This 'dn' is no group.")."</b>";
return ($display);
index 448f4952d01605a7d6127f54bed99985e875c33c..43f449c18eaa3d5a0cfc3900730ed7a736aef179 100644 (file)
/* If this ins't new mailgroup, read all required data from ldap
*/
- if (($dn != "new")&&($dn != NULL)){
+ if (($dn != "new")&&($dn !== NULL)){
/* Load attributes which represent multiple entries
*/
$display = "";
/* Do we represent a valid account? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display.= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no valid mail extensions.")."</b>";
/* Show tab dialog headers */
$display= "";
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display.= $this->show_disable_header(_("Remove mail account"),
_("This account has mail features enabled. You can disable them by clicking below."));
diff --git a/plugins/admin/ogroups/class_mailogroup.inc b/plugins/admin/ogroups/class_mailogroup.inc
index 33878acda0264f352c4aaa9ee650fa5c73a63071..7074f25a5bd74cd58e9f2f52299c80bcdfb5d313 100644 (file)
}
/* Show tab dialog headers */
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove mail account"),
_("This group has mail features enabled. You can disable them by clicking below."));
diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc
index f3e90d73ec2103985ccdfc6d985a2d58a56646df..be7d69a117af57cf89f69926a369f3960a1a23c2 100644 (file)
}
/* Show tab dialog headers */
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove the phone queue from this Account"),
_("Phone queue is enabled for this group. You can disable it by clicking below."));
diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc
index 108f1f405096d7499e4e47da5adaa4c446be9325..32530a5b594045215ac65a07474a5c0063e0f151 100644 (file)
}
/* Do we represent a valid phone? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no network features.")."</b>";
return($display);
diff --git a/plugins/admin/systems/class_glpiAttachmentPool.inc b/plugins/admin/systems/class_glpiAttachmentPool.inc
index f4453243daf2b1bab7648c9d42d316ad70cd24ed..b500660298b80ad14dd2502dd6a4c055b6624e63 100644 (file)
}
/* Assign used attributes */
- if($used != NULL){
+ if($used !== NULL){
$this->Selected = $used;
}
}
diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc
index efbb3f1f7f525d6fd90dedb104330127d4b71d76..bb4efc3578bdd0b79e0d2673f7c7c26baa1bd951 100644 (file)
}
/* Do we represent a valid phone? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no phone features.")."</b>";
return($display);
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 57685ac96bad2a2ffc671cd9815d8681d3392ce8..a1a4fd37c159f809d251e2c60d781addb785224d 100644 (file)
}
/* Do we represent a valid printer? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no printer features.")."</b>";
return($display);
}
/* Display dialog, if there is currently one open*/
- if($this->dialog != NULL){
+ if($this->dialog !== NULL){
$this->dialog->save_object();
$display = $this->dialog->execute();
return $display;
diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc
index c3d503b69136eae5475e57d2350241bc7c3053f1..edeecca776027760912ec45465089991d66e2aa0 100644 (file)
* and set it as selected.
* The ppdpath ['link'] should be relative from .../ppd/modified/
* e.g. "/Compaq/Compaq-J1200.ppd" */
- if(($ppdfile!= NULL)&&(strlen($ppdfile)>0)){
+ if(($ppdfile!== NULL)&&(strlen($ppdfile)>0)){
$ppdfile = preg_replace("#".$this->pathToModified."#","",$ppdfile);
if(!file_exists($this->pathToPPD.$this->pathToModified.$ppdfile)){
print_red(sprintf(_("Can't open '%s', ppd settings resetted."),$ppdfile));
}
/* if a dialog is open, print the dialog instead of this class */
- if($this->dialog!=NULL){
+ if($this->dialog!==NULL){
$display = $this->dialog->execute();
return($display);
}
index f22860b68fedd2025652df67d0b056fd0fe18a36..df62afbedceb43b0d0f35622c126fb76e3b927ab 100644 (file)
/* Show dialog
*/
- if($this->dialog != NULL && !is_int($this->dialog)){
+ if($this->dialog !== NULL && !is_int($this->dialog)){
$this->dialog->save_object();
$this->dialog->parent = $this;
return($this->dialog->execute());
index b7cb873a44329cc68a4cb523b57ccd21848d96eb..4f5ed149b73542212fec6259ba9d938ddad71370 100644 (file)
/* Show dialog
*/
- if($this->dialog!= NULL){
+ if($this->dialog!== NULL){
$this->dialog->save_object();
$this->dialog->parent = $this;
return($this->dialog->execute());
diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index 116628786e14a2ee21968b3b5ab93cf7199d682c..1acaaad4cb50a9a12ad2407207ccd6b6faf6a04a 100644 (file)
}
/* Do we represent a valid server? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no server features.")."</b>";
return($display);
diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index 03d23140584799c5bd59a09d7d61c88424ecd4c8..c7fea3871796081f03e9004ec48519000ef4321a 100644 (file)
$this->is_dialog = false;
}
- if($this->dialog != NULL){
+ if($this->dialog !== NULL){
$this->dialog->save_object();
$this->is_dialog = true;
return($this->dialog->execute());
diff --git a/plugins/admin/systems/class_serverService.inc b/plugins/admin/systems/class_serverService.inc
index 215bbd712b2dad64117409e00c44ec17bd479d96..cb50f5d0362ced324727806e75ac514ed42b7337 100644 (file)
/* There is currently a subdialog open, display this dialog */
- if($this->dialog != NULL){
+ if($this->dialog !== NULL){
$this->dialog->save_object();
return($this->dialog->execute());
}
diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index 3eef5f61fc393c99f9d71a0c5bab4cca66853cff..57a70ff55455afe9ae42416ea2e6d10928af1148 100644 (file)
}
/* Do we represent a valid terminal? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no terminal features.")."</b>";
return($display);
diff --git a/plugins/admin/systems/class_terminalInfo.inc b/plugins/admin/systems/class_terminalInfo.inc
index 29ee7d33553733ce19bc9da246a6190f40fb8369..0b81eb7d35f1891b7aa1e969a1574d951141293c 100644 (file)
}
/* Do we represent a valid terminal? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
echo "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no terminal features.")."</b>";
return;
diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc
index 0d07ef0b135dbaf2e803a6c4085245f2301266cd..84f84587c8983a239af1af2a3e547e728d2c3de9 100644 (file)
}
/* Do we represent a valid terminal? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This 'dn' has no terminal features.")."</b>";
return ($display);
diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc
index 33d4ad297544fe8f5bf91541415ff83e40ee36f6..8bab797f4159d3bddf6b7485a39db5fac4bc9868 100644 (file)
}
/* Do we represent a valid terminal? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no terminal features.")."</b>";
return ($display);
diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc
index cbabc12ae1cd406a6d13821a8dd046eabd9ff898..b1778a1a8cddbd792dfd1330d509d818dadf2e4a 100644 (file)
/* Do we represent a valid phone? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no network features.")."</b>";
return($display);
diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc
index a61bf95991f0b290a7afb98fb82dbde6bd90e65b..59427c35a9801c0bec207a38d351b99c2d8babb1 100644 (file)
}
/* Do we represent a valid terminal? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no workstation features.")."</b>";
return($display);
diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
index 5396a0608d7a9e21c4eb077086635669e228a89a..06eb663803a19763c25f6dedef7da2b83406ed8c 100644 (file)
}
/* Do we represent a valid terminal? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
_("This 'dn' has no terminal features.")."</b>";
return ($display);
index 92c9fbb33ec0c9f141e807acb8f118fec3ac1859..85755a3e95e8ce03e23fdb0bd627e89a90cca7c0 100644 (file)
foreach ($data as $tab){
$this->by_name[$tab['CLASS']]= $tab['NAME'];
- if ($baseobject == NULL){
+ if ($baseobject === NULL){
$baseobject= new $tab['CLASS']($this->config, $this->dn,NULL,$this);
$this->by_object[$tab['CLASS']]= $baseobject;
} else {
index 69540dda128ca4ab2cc88dc6d5a97c847c9c87f4..3b9a6c51ddd58e1e53529163fb95d7e64e95ca85 100644 (file)
foreach ($data as $tab){
$this->by_name[$tab['CLASS']]= $tab['NAME'];
- if ($baseobject == NULL){
+ if ($baseobject === NULL){
$baseobject= new $tab['CLASS']($this->config, $this->dn,NULL,$this);
$this->by_object[$tab['CLASS']]= $baseobject;
} else {
diff --git a/plugins/admin/systems/tabs_workstation.inc b/plugins/admin/systems/tabs_workstation.inc
index 0fe5667ea5a861556fbdda8f23f5b3a054cef8d0..282c372b0af29e67851d681a75c65b74573aaf3e 100644 (file)
foreach ($data as $tab){
$this->by_name[$tab['CLASS']]= $tab['NAME'];
- if ($baseobject == NULL){
+ if ($baseobject === NULL){
$baseobject= new $tab['CLASS']($this->config, $this->dn,NULL,$this);
$this->by_object[$tab['CLASS']]= $baseobject;
} else {
diff --git a/plugins/generic/references/class_reference.inc b/plugins/generic/references/class_reference.inc
index d808f00ba33e55c2220ce15eb3a830774495c164..472e42e11ba944957ad3611271ec69288fc84c1c 100644 (file)
}
foreach ($attrs[$memberattr] as $uid){
$content= $this->getCacheObject($uid);
- if ($content == NULL) {
+ if ($content === NULL) {
continue;
}
$addon.= '<tr style="background-color:'.$cycle[$id&1].';"><td title="'.$attrs['cn'][0].'"> '.$content['name'].'</td><td>'.$content['description'].'</td><td>'.$content['type'].'</td> </tr>';
diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc
index b617ca5cb984792317cba190214b8e7f07f3676e..a36811e035ac35ddb006181ba7cac7445d2aa384 100644 (file)
}
/* Do we represent a valid account? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This account has no fax extensions.")."</b>";
$display.= back_to_main();
/* Show tab dialog headers */
$display= "";
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove fax account"),
_("This account has fax features enabled. You can disable them by clicking below."));
diff --git a/plugins/gofon/macro/class_gofonMacroParameters.inc b/plugins/gofon/macro/class_gofonMacroParameters.inc
index 614e17d74698c3bf64a94debd0a3e9c38dc5de53..5a08d3e228aa56e240f03c94a3f18612d6f5d5fd 100755 (executable)
}
/* Do we represent a valid group? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This 'dn' is no phone macro.")."</b>";
return ($display);
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index 4fd56b7e4502be7b011b597a0afd342efee3b3db..676a47c749adae61594f0c7df6fb6a20f91d6bd4 100644 (file)
* We should create one i
*/
foreach($sip_data_array as $s_sip_key=>$s_sip_val){
- if($s_sip_val == NULL) continue;
+ if($s_sip_val === NULL) continue;
$s_sip_values.="'".$s_sip_val."',";
$s_sip_keys .="`".$s_sip_key."`,";
}
*/
$s_voi_values = $s_voi_keys = "";
foreach($voice_data_array as $s_voi_key=>$s_voi_val){
- if($s_voi_val == NULL) continue;
+ if($s_voi_val === NULL) continue;
$s_voi_values.="'".$s_voi_val."',";
$s_voi_keys .="`".$s_voi_key."`,";
}
}
/* Do we represent a valid account? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This account has no phone extensions.")."</b>";
$display.= back_to_main();
/* Do we represent a valid account? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This account has no phone extensions.")."</b>";
$display.= back_to_main();
$display= "";
/* Show tab dialog headers */
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove phone account"),
_("This account has phone features enabled. You can disable them by clicking below."));
diff --git a/plugins/personal/connectivity/class_connectivity.inc b/plugins/personal/connectivity/class_connectivity.inc
index 0704ffe111009d6628eb2676370de53a5a83008a..70cfd87a7adab1b2713b49a7c476494f36ccbe28 100644 (file)
$smarty= get_smarty();
/* Do we represent a valid account? */
- if ($this->parent == NULL){
+ if ($this->parent === NULL){
$enabled= true;
foreach ($this->plugin_name as $name){
if ($this->plugin[$name]->is_account){
}
/* Remove checkboxes in single edit mode */
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
foreach ($this->plugin_name as $name){
$this->plugin[$name]->parent= $this->parent;
}
diff --git a/plugins/personal/connectivity/class_intranetAccount.inc b/plugins/personal/connectivity/class_intranetAccount.inc
index f5baf7e4c954981a4c2ce04056dc739a78347d8e..95781eadf57b1becb5466b9fa27556c1fdc6b092 100644 (file)
}
//! Ever assign vars to smarty in both cases, to avoid php errors (missing variable aso. )
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
$smarty->assign("tabbed", 1);
}else{
$smarty->assign("tabbed", 0);
diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc
index 6fe7b9a4533c7fd84ed91af61b516170e1cee89c..f21e1e4eb42f0aae8397fa5993f7aedf8b9987bf 100644 (file)
$smarty->assign("timezones", $this->timezones);
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
$smarty->assign("tabbed", 1);
}else{
$smarty->assign("tabbed", 0);
diff --git a/plugins/personal/connectivity/class_webdavAccount.inc b/plugins/personal/connectivity/class_webdavAccount.inc
index 7783e7f48553676dface37a9a1c581141b44bd69..401648a9f41982f04dc2ce533e894a8ffc80a7c7 100644 (file)
$smarty->assign("wstate", "disabled");
}
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
$smarty->assign("tabbed", 1);
}
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 7e902dd9807f04dd109c941395baf8de9d36f08d..efd8521eb9b20ed5f4c2bd5fc6c96af07fd70722 100644 (file)
$smarty->assign("gotoPrinterKeys",array_flip($this->printOutPrinterDevices()));
/* General behavior */
- if((isset($this->dialog))&&($this->dialog!=NULL)&&(!empty($this->dialog))){
+ if((isset($this->dialog))&&($this->dialog!==NULL)&&(!empty($this->dialog))){
$this->dialog->save_object();
$disp =$this->dialog->execute();
index ecd19f8d2580a7fd7dfcb3bc9b36d08f70090c0d..ab6cc2e826d12605bc78ff624d5dccd78ca72f83 100644 (file)
$display.= "<p class=\"plugbottom\">";
/* Are we in edit mode? */
- if ((isset($_SESSION['edit']))&&($environment->dialog==NULL)){
+ if ((isset($_SESSION['edit']))&&($environment->dialog===NULL)){
$display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\""._("Ok")."\">\n";
$display.= " ";
$display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
index 617c7eacaff81cd72b8c8fdb35d55a22670b7b03..f55a9ddfc1914e30d7992c8b7ff2f7db724dc076 100644 (file)
}
/* Load data from LDAP? */
- if ($dn != NULL){
+ if ($dn !== NULL){
/* Do base conversation */
if ($this->dn == "new"){
}
/* Get back uid/sn/givenName */
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
$this->uid= $this->parent->uid;
$this->sn= $this->parent->sn;
$this->givenName= $this->parent->givenName;
diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc
index e32e5857a7d6d5fa835228ad95e99059e29cfdff..804ba2ba05def039c5ea5e673ba4a754f11b5301 100644 (file)
}
/* Do we represent a valid account? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\"src=\"images/stop.png\" align=\"middle\"> <b>".
_("This account has no nagios extensions.")."</b>";
}
/* Show tab dialog headers */
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove nagios account"),
_("This account has nagios features enabled. You can disable them by clicking below."));
diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc
index 8e14e8213bd564f0ae7de791a43fdb174c80c895..23af26f20ca4c29ebb6b77c36d2680791a3e3325 100644 (file)
$this->shares = array();
$ldap = $this->config->get_ldap_link();
- if($this->dn === "new" || $this->dn == NULL) {
+ if($this->dn === "new" || $this->dn === NULL) {
$base = $_SESSION['CurrentMainBase'];
} else {
$base = preg_replace("/^[^,]+,".normalizePreg(get_people_ou())."/","",$this->dn);
}
/* Do we represent a valid account? */
- if (!$this->is_account && $this->parent == NULL) {
+ if (!$this->is_account && $this->parent === NULL) {
$display = "<img alt=\"\"src=\"images/stop.png\" align=\"middle\"> <b>"._("This account has no netatalk extensions.")."</b>";
$display .= back_to_main();
}
/* Show tab dialog headers */
- if ($this->parent != NULL) {
+ if ($this->parent !== NULL) {
if ($this->is_account) {
$display = $this->show_disable_header(_("Remove netatalk account"), _("This account has netatalk features enabled. You can disable them by clicking below."));
} else {
diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc
index d66ec57e0eee7796dca618e4a392132f742d3302..d92c80f75d21eec0ab13708d2786f26ae006cc34 100644 (file)
$this->is_account= !$this->is_account;
}
/* Do we represent a valid account? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\"src=\"images/stop.png\" align=\"middle\"> <b>".
_("This account has no samba extensions.")."</b>";
$display.= back_to_main();
/* Show tab dialog headers */
$display= "";
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove samba account"),
_("This account has samba features enabled. You can disable them by clicking below."));
diff --git a/plugins/personal/scalix/class_scalixAccount.inc b/plugins/personal/scalix/class_scalixAccount.inc
index e914483945177281952ddce351912a662644fe3d..a69972fc93da3b416dce3a58fbddcc68cd76bdd3 100644 (file)
function scalixAccount (&$config, $dn= NULL)
{
/* dn shouldn't be NULL */
- if($dn == NULL){
+ if($dn === NULL){
trigger_error("Initialising scalixAccount without valid dn.");
}
$serverLanguages= array("", "GERMAN", "ENGLISH");
/* Do we represent a valid account? */
- if (!$this->is_account && $this->parent == NULL){
+ if (!$this->is_account && $this->parent === NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This account has no scalix extensions.")."</b>";
}
/* Show tab dialog headers */
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
$display= $this->show_disable_header(_("Remove scalix account"),
_("This account has scalix synchronization enabled. You can disable it by clicking below."));