Commit 00bbd71e authored by John Fox Woland's avatar John Fox Woland
Browse files

. Промежуточный коммит

parent 296f04a9
<table border="1" cellspacing="0" cellpadding="1" width=400><tr><td align="center"><font color=green size=-1>: M :21</font></td><td rowspan=4 nowrap><tt>1-10<br><br><span title=" - ">A: <font color=blue>1</font></span><br><span title=" IQ ">B: <font color=red>10</font></span><br><span title="- - -">C: <font color=green>6</font></span><br><span title=" - ">E: <font color=green>7</font></span><br><span title=" - ">F: <font color=green>7</font></span><br><span title=" - - -">G: <font color=blue>3</font></span><br><span title=" - ">H: <font color=green>6</font></span><br><span title=" - ">I: <font color=green>6</font></span><br><span title=" - ">L: <font color=red>8</font></span><br><span title=" - ">M: <font color=red>10</font></span><br><span title=" - ">N: <font color=blue>2</font></span><br><span title=" - ">Q: <font color=green>4</font></span><br><span title=" - ">Q1:<font color=green>5</font></span><br><span title=" - ">Q2:<font color=green>7</font></span><br><span title=" - ">Q3:<font color=red>9</font></span><br><span title=" - ">Q4:<font color=red>8</font></span><br></tt></td></tr><tr><td><small><b> PP:</b></small><br><small><b> ( ):</b></small><br><font size=-2 color=navy>: p, ,p,, .<br> IQ: , , .<br> -: p p p.<br>: , , , p.<br>: , , , .<br>: , , p, , p.<br> : , , , pp.<br> -: , .<br></font><small><b> ( ):</b></small><br><font size=-2 color=navy>: , p, , , p.<br>: , ,, , .<br>: , , , .<br>: , p, , p.<br></font><small><b> ( ):</b></small><br><font size=-2 color=navy> p. .<br>. , , .<br></font></td></tr><tr><td><small><b> :</b></small><br><font size=-2 color=navy><b>:</b> . </font><br><font size=-2 color=navy><b>:</b> . </font><br><font size=-2 color=navy><b>:</b> . , </font><br><font size=-2 color=navy><b>:</b> , </font><br><font size=-2 color=navy><b>:</b> . </font><br><font size=-2 color=navy><b>:</b> . </font><br><font size=-2 color=navy><b> :</b> , ..</font><br><font size=-2 color=navy><b>:</b> . , </font><br></td></tr><tr><td><small><b> :</b></small><br><font size=-2 color=navy> </font><br></td></tr><tr><td colspan=2 align="center"><a href="http://www.colorpsy.boom.ru/tests.htm" target=_blank> 16-PF+</a><br><a href="http://trurl.h12.ru/test/" target=_blank> </a></td></tr></table>
<?php
require "drivers/load.php";
?>
\ No newline at end of file
<?php
$dd = opendir("drivers");
while (readdir($dd))
{
}
function drivers_unload ()
{
}
?>
\ No newline at end of file
<?php
require "main/_functions.php";
require "storage/init.php";
require "common/settings.php";
require "common/functions.php";
require "common/init.php";
require "common/initvars.php";
$id_index=0;
$remote_proxy_ip="";
......@@ -40,7 +42,7 @@
<head>
<title>Woland.perm.ru</title>
<link rel="shortcut icon" href="/images/icon.png">
<link rel="stylesheet" type="text/css" href="/styles.css">
<link rel="stylesheet" type="text/css" href="/css/styles.css">
<link rel="openid.server" href="https://openid.fox.perm.ru/index.php/serve">
<link rel="openid.delegate" href="https://openid.fox.perm.ru/?user=woland">
</head>
......@@ -72,7 +74,7 @@
<tr height="1" class="footer">
<td colspan="<?php echo $menuitems?>">
<?php
include("add/footer.php");
include("/footer.php");
?>
</td>
</tr>
......@@ -80,5 +82,5 @@
</body>
</html>
<?php
storage_close();
drivers_unload();
?>
<?php
$datadir = "/var/www/dev.woland.perm.ru/storage/backend/fs/data/lst";
?>
......@@ -9,27 +9,21 @@
function storage_open ()
{
global $pgsql_pdo;
global $storage_pgsql_server, $storage_pgsql_db, $storage_pgsql_user, $storage_pgsql_passwd;
global $datadir;
try
{
$pgsql_pdo = new PDO("pgsql:host=$storage_pgsql_server port=5432 dbname=$storage_pgsql_db user=$storage_pgsql_user" .
" password=$storage_pgsql_passwd");
}
catch (PDOException $e)
{
echo "Couldn't connect to database. Got error: $e";
return 1;
}
return 0;
if (is_dir($datadir))
if ($dh = @opendir($datadir))
{
closedir($dh);
return 0;
}
echo "Couldn't access storage directory";
return 1;
}
function storage_close ()
{
global $pgsql_pdo;
$pgsql_pdo = null;
}
function storage_use ($module, $command, $params)
......
......@@ -10,6 +10,22 @@
function module_menu_get ($params)
{
global $datadir;
$menu = array();
$tmenu = file("$datadir/menu.lst");
foreach ($tmenu as $tmenuitem)
{
$menuitem = array();
list($id, $caption, $page, $header) = split(":", $tmenuitem);
array_push($menu, array("id" => $id, "caption" => $caption, "page" => $page, "header" => $header));
}
return $menu;
}
function module_smenu_get ($params)
{
global $datadir;
$smenu = array
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment