function update_item($item_id)
{
    set_lock_state(True, $item_id);
    $item = get_item($item_id);
    $item['fields']['description'] .= test_results();
    put_item($item_id, $item);
    set_lock_state(False, $item_id);
}
Esempio n. 2
0
function test_wbinfomoinsa()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $array = unserialize(base64_decode($sock->GET_INFO("KerbAuthInfos")));
    if (isset($_GET["via-samba"])) {
        $viaSmamba = "&via-samba=yes";
    }
    $AR["USER"] = $array["WINDOWS_SERVER_ADMIN"];
    $AR["PASSWD"] = $array["WINDOWS_SERVER_PASS"];
    if (isset($_GET["via-samba"])) {
        $viaSmamba = "&via-samba=yes";
        $array = unserialize(base64_decode($sock->GET_INFO("SambaAdInfos")));
        $AR["USER"] = $array["ADADMIN"];
        $AR["PASSWD"] = $array["PASSWORD"];
        $SambaWinbindUseDefaultDomain = $sock->GET_INFO("SambaWinbindUseDefaultDomain");
        if (!is_numeric($SambaWinbindUseDefaultDomain)) {
            $SambaWinbindUseDefaultDomain = 0;
        }
        if ($SambaWinbindUseDefaultDomain == 0) {
            $AR["WORKGROUP"] = $array["WORKGROUP"];
        }
    }
    $cmdline = base64_encode(serialize($AR));
    $html = "<hr><div style='font-size:18px'>";
    $datas = unserialize(base64_decode($sock->getFrameWork("samba.php?wbinfomoinsa=yes&auth={$cmdline}{$viaSmamba}")));
    $html = $html . test_results($datas) . "</div>\n\t<script>\n\t\tLoadAjaxTiny('squid-adker-status','squid.adker.php?status=yes&t=squid-adker-status');\n\t</script>\n\t\t\t\n\t\t\t";
    echo $tpl->_ENGINE_parse_body($html);
}
Esempio n. 3
0
function test_wbinfomoinsa()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $array = unserialize(base64_decode($sock->GET_INFO("KerbAuthInfos")));
    $AR["USER"] = $array["WINDOWS_SERVER_ADMIN"];
    $AR["PASSWD"] = $array["WINDOWS_SERVER_PASS"];
    $cmdline = base64_encode(serialize($AR));
    $html = "<hr>";
    $datas = unserialize(base64_decode($sock->getFrameWork("samba.php?wbinfomoinsa=yes&auth={$cmdline}")));
    $html = $html . test_results($datas);
    echo $tpl->_ENGINE_parse_body($html);
}
Esempio n. 4
0
    echo "<br /";
}
// The instance ▼
$myLayoutVariable = new Layout();
// The nickname/reference/short-name ▼
$myvar =& $myLayoutVariable;
// This ▲ is what we should be aware of..
$othervar = clone $myLayoutVariable;
$myLayoutVariable->input = "This is the longname";
test_results();
$myvar->input = "this is the myvar";
test_results();
$othervar->input = "This is the other var";
test_results();
$myLayoutVariable->input = "This is the longname";
test_results();
?>
<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<title>PHP OOP Concepts Tutorial</title>
</head>
<body>
	<h2>Toturial text</h2>
<pre>
Lets use the feature which is called linking (I forgot the name which most developers call it)

Yup. references..

Ok, so now, we will use references..