$message
\n"; apidb_footer(); exit; } /** * redirect to $url */ function util_redirect_and_exit($url) { header("Location: ".$url); exit; } function build_urlarg($vars) { $arr = array(); while(list($key, $val) = each($vars)) { if(is_array($val)) { while(list($idx, $value) = each($val)) { //echo "Encoding $key / $value| Application Name | \n"; echo "Description | \n"; echo "No. Versions | \n"; echo "
| ".html_ahref($oRow->appName,$oApp->objectMakeUrl())." | \n"; echo "".util_trim_description($oRow->description)." | \n"; echo "$y->versions | \n"; echo "
| $c match(es) found | ||
$aDesc = explode("
",$aDesc[0],2);
$aDesc = explode("
",$aDesc[0],2);
$aDesc = explode("
",$aDesc[0],2); $aDesc = explode("
",$aDesc[0],2); return trim(strip_tags($aDesc[0])); } /* This allows us to pass on the current URL to the login form so that the user is returned to the current page once he has logged in */ function login_url() { $sCurrentUrl = urlencode($_SERVER['REQUEST_URI']); $sLoginUrl = BASE."account.php?sCmd=login"; /* If we are on the login page that means the URL already contains an sReturnTo value, and we don't want two. Besides, there is little point in redirecting to the login page after login. */ if(!strpos($sCurrentUrl, "sReturnTo") && !strpos($sCurrentUrl, "account.php")) $sLoginUrl .= "&sReturnTo=".$sCurrentUrl; return $sLoginUrl; } ?>