/*
XXXX Pro's Application PHP Programming Interface (XAPhPI) for Intellect Board 2
(c) 2005, XXXX Pro, United Open Project
Visit us online: http://openproj.ru
*/
function &getvar($name) {
if (strpos($name,"_text")!==false && $name!="pv_text" && $name!="pm_text") {
if (isset($_GET[$name])) $tmp = $_GET[$name];
elseif (isset($_POST[$name])) $tmp= $_POST[$name];
}
else {
if (isset($_GET[$name])) $tmp = htmlspecialchars($_GET[$name]);
elseif (isset($_POST[$name])) $tmp= htmlspecialchars($_POST[$name]);
}
$tmp=db_slashes($tmp);
return $tmp;
}
function &build_select($sql,$value="") {
$res = db_query($sql,$GLOBALS['link']);
$tmp = "";
while ($tmpdata=db_fetch_row($res)) {
if ($tmpdata[0]==$value) $tmp.="