Notebookregistrierung für Mitarbeiter deaktiviert

This commit is contained in:
Andreas Österreicher
2019-10-07 14:00:46 +02:00
parent c739fb0dc5
commit db7687e1ff
3 changed files with 23 additions and 17 deletions
+12 -6
View File
@@ -67,7 +67,13 @@ function ip_increment($ip = "")
<tr>
<td class="cmscontent" rowspan="3" valign="top">
<?php
if($is_lector || check_lektor($txtUID))
{
echo 'Die Notebook registrierung steht nur für Studierende zur Verfügung.<br>
Wollen Sie als Mitarbeiter ein Notebook registrieren wenden Sie sich bitte an den <a href="mailto:support@technikum-wien.at">Support</a> ';
echo '</td></tr></table></div></body></html>';
exit;
}
if (!$txtUID)
$txtUID = $user;
// wenn die übergebene UID nicht gleich dem
@@ -240,21 +246,21 @@ function ip_increment($ip = "")
else if ($error == 3)
echo '<h3>'.$p->t("notebookregister/MACadresseBereitsVerwendet").'.</h3>';
if(isset($mac_result) && $mac_result!='')
if(isset($mac_result) && $mac_result!=='')
{
if($mac_result == 0)
if($mac_result === 0)
{
echo '<h3>'.$p->t("notebookregister/MACadresseErfolgreichEingetragen").'.</h3>';
}
else if($mac_result == 1)
else if($mac_result === 1)
{
echo '<h3>'.$p->t("notebookregister/MACadresseErfolgreichGeaendert").'.</h3>';
}
else if($mac_result == 2)
else if($mac_result === 2)
{
echo '<h3>'.$p->t("notebookregister/MACadresseFehlerhaft").'.</h3>';
}
else if($mac_result == 3)
else if($mac_result === 3)
{
echo '<h3>'.$p->t("notebookregister/MACadresseNichtFreigeschalten").'.</h3>';
}
+6 -6
View File
@@ -32,7 +32,7 @@
*/
class File_Match
{
// {{{ Properties (All private)
var $find;
@@ -61,7 +61,7 @@ class File_Match
* feature only works with the "normal" search.
*
*/
function File_Match($find, $files, $directories = '', $include_subdir = 1, $ignore_lines = array())
function __construct($find, $files, $directories = '', $include_subdir = 1, $ignore_lines = array())
{
$this->find = $find;
@@ -309,7 +309,7 @@ class File_Match
$file = fread($fp = fopen($filename, 'r'), filesize($filename));
fclose($fp);
$this->occurences = preg_match($this->find, $file, $this->match);
$this->occurences = preg_match($this->find, $file, $this->match);
}
// }}}
@@ -342,7 +342,7 @@ class File_Match
// }}}
// {{{ writeout()
/**
* Function to writeout the file contents.
*
@@ -430,7 +430,7 @@ class File_Match
// }}}
// {{{ doFind()
/**
* This starts the search/replace off. Call this to do the search.
* First do whatever files are specified, and/or if directories are specified,
@@ -447,7 +447,7 @@ class File_Match
if ($this->directories != '') $this->doDirectories($this->find_function);
}
}
// }}}
}
+5 -5
View File
@@ -32,7 +32,7 @@
*/
class File_SearchReplace
{
// {{{ Properties (All private)
var $find;
@@ -63,7 +63,7 @@ class File_SearchReplace
*
* @author Richard Heyes <richard.heyes@heyes-computing.net>
*/
function File_SearchReplace($find, $replace, $files, $directories = '', $include_subdir = 1, $ignore_lines = array())
function __construct($find, $replace, $files, $directories = '', $include_subdir = 1, $ignore_lines = array())
{
$this->find = $find;
@@ -367,7 +367,7 @@ class File_SearchReplace
// }}}
// {{{ writeout()
/**
* Function to writeout the file contents.
*
@@ -455,7 +455,7 @@ class File_SearchReplace
// }}}
// {{{ doSearch()
/**
* This starts the search/replace off. Call this to do the search.
* First do whatever files are specified, and/or if directories are specified,
@@ -472,7 +472,7 @@ class File_SearchReplace
if ($this->directories != '') $this->doDirectories($this->search_function);
}
}
// }}}
}