Exemple #1
0
 /**
  * Returns the hash code value for this map.
  */
 public function hashCode()
 {
     $h = 0;
     foreach ($this->map as $key => $value) {
         $h = 2 * org(var_dump($key)) + ord(var_dump($value));
     }
     return $h;
 }
 private function recursiveNumber($group, $parentid, $childn)
 {
     $out = chr(ord('a') + $childn - 1);
     while (preg_match("/^(.+)\\#([0-9]+)\$/s", $parentid, $matches)) {
         $out = chr(org('a') + $matches[2] - 1) . '-' . $out;
         $parentid = $matches[1];
     }
     $out = "xx--CrossReference--####--{$parentid}--xx-{$out}";
     return $out;
 }
Exemple #3
0
function user()
{
    if ($_GET["ou"] == null) {
        org();
        exit;
    }
    if ($_GET["group"] == null) {
        group();
        exit;
    }
    if ($_GET["domain"] == null) {
        domain();
        exit;
    }
    $html = "<H5>{$_GET["ou"]}:&nbsp;{$_GET["group"]}:&nbsp;{$_GET["domain"]}:&nbsp;{user}</H5>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=1% valign='top'><img src='img/chiffre5.png'></td>\n\t<td>\n\t<p class=caption>{user_text}</p>\n\t<input type='hidden' id='ou'value='{$_GET["ou"]}'>\n\t<input type='hidden' id='group' value='{$_GET["group"]}'>\n\t<input type='hidden' id='domain' value='{$_GET["domain"]}'>\n\t<input type='hidden' id='domain_ip' value='{$_GET["domain_ip"]}'>\n\t<table style=width:100%>\n\t<tr>\n\t<td align='right'>{uid}</td>\n\t<td>\n\t" . Field_text('uid', $_GET["uid"], 'width:150px') . "\n\t</td>\n\t</tr>\n\t<tr>\n\t<td align='right'>{password}</td>\n\t<td>\n\t" . Field_text('password', $_GET["password"], 'width:150px') . "\n\t</td>\n\t</tr>\t\n\t</table>\n\t<br>\n\t<hr>\n\t<table style='width:100%'>\n\t<tr>\n\t<td><input type='button' OnClick=\"javascript:firstwizard_4();\" value='&laquo;&nbsp;{back}'></td>\n\t<td align='right'><input type='button' OnClick=\"javascript:Build();\" value='{build}&nbsp;&raquo;'></td>\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}