git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
4480eb2
Branches
Tags
master
ticket
webinterface.git
modules
freewvs
include
freewvs.php
FreeWVS zeigt jetzt Ergebnisse und Upgrade-Anleitungen an.
bernd
commited
4480eb2
at 2008-12-22 12:04:29
freewvs.php
Blame
History
Raw
<?php require_once('inc/base.php'); function load_results() { $uid = (int) $_SESSION['userinfo']['uid']; $result = db_query("SELECT directory, docroot, lastcheck, appname, version, state, safeversion, vulninfo FROM qatools.freewvs_results WHERE uid={$uid}"); $ret = array(); while ($line = mysql_fetch_assoc($result)) { array_push($ret, $line); } return $ret; } function get_upgradeinstructions($appname) { $appname = mysql_real_escape_string($appname); $result = db_query("SELECT url FROM qatools.freewvs_upgradeinstructions WHERE appname='{$appname}' LIMIT 1"); if (mysql_num_rows($result) > 0) { $tmp = mysql_fetch_array($result); return $tmp[0]; } return NULL; }