diff --git a/account.php b/account.php index a7e4006..06bd898 100644 --- a/account.php +++ b/account.php @@ -1,131 +1,140 @@ -exists($_POST['ext_username'])) - { - $_POST['ext_username'] = ""; - retry("new", "That username is already in use"); - return; - } + { + $_POST['ext_username'] = ""; + retry("new", "That username is already in use"); + return; + } $result = $user->create($_POST['ext_username'], $_POST['ext_password'], $_POST['ext_realname'], $_POST['ext_email']); if($result == null) - { - $user->login($_POST['ext_username'], $_POST['ext_password']); - addmsg("Account created! (".$_POST['ext_username'].")", "green"); - redirect(apidb_fullurl()); - } + { + $user->login($_POST['ext_username'], $_POST['ext_password']); + addmsg("Account created! (".$_POST['ext_username'].")", "green"); + redirect(apidb_fullurl()); + } else retry("new", "Failed to create account: $result"); } -//email lost password + +/** + * email lost password + */ function cmd_send_passwd() { $user = new User(); @@ -134,7 +143,7 @@ function cmd_send_passwd() $passwd = generate_passwd(); if ($userid) - { + { if ($user->update($userid, $passwd)) { $msg = "Application DB Lost Password\n"; @@ -166,23 +175,25 @@ function cmd_send_passwd() redirect(apidb_fullurl("account.php?cmd=login")); } -//on login handler + +/** + * on login handler + */ function cmd_do_login() { $user = new User(); $result = $user->login($_POST['ext_username'], $_POST['ext_password']); if($result == null) - { - $_SESSION['current'] = $user; - addmsg("You are successfully logged in as '$user->username'.", "green"); - redirect(apidb_fullurl("index.php")); - } - else - { - retry("login","Login failed ($result)"); - $_SESSION['current'] = ""; - } + { + $_SESSION['current'] = $user; + addmsg("You are successfully logged in as '$user->username'.", "green"); + redirect(apidb_fullurl("index.php")); + } else + { + retry("login","Login failed ($result)"); + $_SESSION['current'] = ""; + } } -?> \ No newline at end of file +?> diff --git a/addcomment.php b/addcomment.php index 12f6db9..fdb04a1 100644 --- a/addcomment.php +++ b/addcomment.php @@ -1,4 +1,4 @@ - diff --git a/appbrowse.php b/appbrowse.php index edd3c04..bb1797c 100644 --- a/appbrowse.php +++ b/appbrowse.php @@ -1,7 +1,7 @@ - diff --git a/deletecomment.php b/deletecomment.php index 07af704..68a335d 100644 --- a/deletecomment.php +++ b/deletecomment.php @@ -1,4 +1,4 @@ - - +   User Name - +   Password @@ -91,15 +91,16 @@ if($HTTP_POST_VARS)   Real Name - +   Email Address - +   Administrator - "> + "> +   diff --git a/help/index.php b/help/index.php index 37a78a2..efd573b 100644 --- a/help/index.php +++ b/help/index.php @@ -1,9 +1,7 @@ - diff --git a/include/appdb.php b/include/appdb.php index a85ffe0..08c50c2 100644 --- a/include/appdb.php +++ b/include/appdb.php @@ -1,4 +1,4 @@ - */ +/* last modified: 2001.10.08 */ +/**********************************************/ -/* - * Banner Ad Library - * by Jeremy Newman - * last modified: 2001.10.08 - * - */ - -/* +/** * Path for Banner Ads */ - function banner_display () { - // import banner paths from config - global $apidb_root; + // import banner paths from config + global $apidb_root; $banner_path_468x60 = $apidb_root."banner/468x60/"; $banner_path_xml = $apidb_root."banner/xml/"; - // opening html - $banner = ""; - $banner .= "\n\n".''."\n"; - $banner .= '
'."\n"; + // opening html + $banner = ""; + $banner .= "\n\n".''."\n"; + $banner .= '
'."\n"; - // read dir and get list of banners - $ads = array(); - $d = opendir($banner_path_468x60); - while($entry = readdir($d)) - { - if(!ereg("(.+)\\.gif$", $entry, $arr)) - continue; //" - array_push($ads, $arr[1]); - } - closedir($d); - - // randomly select a banner and display it - $img = $ads[(rand(1,count($ads))-1)]; - $url = get_xml_tag($banner_path_xml.$img.'.xml','url'); - $alt = get_xml_tag($banner_path_xml.$img.'.xml','alt'); + // read dir and get list of banners + $ads = array(); + $d = opendir($banner_path_468x60); + while($entry = readdir($d)) + { + if(!ereg("(.+)\\.gif$", $entry, $arr)) + continue; //" + array_push($ads, $arr[1]); + } + closedir($d); - // da banner - $banner .= ''; - $banner .= ''.$alt.''; - $banner .= ''."\n"; - - // closing html - $banner .= '
'."\n"; - $banner .= ''."\n\n"; + // randomly select a banner and display it + $img = $ads[(rand(1,count($ads))-1)]; + $url = get_xml_tag($banner_path_xml.$img.'.xml','url'); + $alt = get_xml_tag($banner_path_xml.$img.'.xml','alt'); - return $banner; + // da banner + $banner .= ''; + $banner .= ''.$alt.''; + $banner .= ''."\n"; + + // closing html + $banner .= '
'."\n"; + $banner .= ''."\n\n"; + + return $banner; } diff --git a/include/category.php b/include/category.php index eae9471..c932bd4 100644 --- a/include/category.php +++ b/include/category.php @@ -1,6 +1,8 @@ -load($id); + $this->load($id); } - /* + /** * load the category data into this class */ function load($id) { - $this->id = $id; - - if($id == 0) - { - $this->name = "ROOT"; - } - else - { - $result = mysql_query("SELECT * FROM appCategory WHERE catId = $id"); - if(!$result) { - // category not found! - errorpage("Internal Error: Category not found!"); - return; - } + $this->id = $id; - $ob = mysql_fetch_object($result); - $this->name = $ob->catName; - } + if($id == 0) + { + $this->name = "ROOT"; + } else + { + $result = mysql_query("SELECT * FROM appCategory WHERE catId = $id"); + if(!$result) + { + // category not found! + errorpage("Internal Error: Category not found!"); + return; + } - $result = mysql_query("SELECT catId, catName, catDescription FROM ". - "appCategory WHERE catParent = $this->id " . - "ORDER BY catName"); - if(mysql_num_rows($result) == 0) - return; // no sub categories + $ob = mysql_fetch_object($result); + $this->name = $ob->catName; + } - $this->subcat = array(); - while($row = mysql_fetch_object($result)) - { - // Ignore NONAME categories - if($row->catName == "NONAME") - continue; - $this->subcat[$row->catId] = array($row->catName, $row->catDescription); - } + $result = mysql_query("SELECT catId, catName, catDescription FROM ". + "appCategory WHERE catParent = $this->id " . + "ORDER BY catName"); + if(mysql_num_rows($result) == 0) + return; // no sub categories + + $this->subcat = array(); + while($row = mysql_fetch_object($result)) + { + // ignore NONAME categories + if($row->catName == "NONAME") + continue; + $this->subcat[$row->catId] = array($row->catName, $row->catDescription); + } } - /* + /** * resolve the category id by name */ function getCategoryId($name) { - if($name == "ROOT") - return 0; + if($name == "ROOT") + return 0; - $result = mysql_query("SELECT catId FROM appCategory WHERE ". - "catName = '$name'"); - if(!$result) - return -1; - if(mysql_num_rows($result) != 1) - return -1; - $row = mysql_fetch_object($result); - return $row->catId; + $result = mysql_query("SELECT catId FROM appCategory WHERE ". + "catName = '$name'"); + if(!$result) + return -1; + if(mysql_num_rows($result) != 1) + return -1; + $row = mysql_fetch_object($result); + return $row->catId; } - /* + /** * returns the list of sub categories * * category list has the following format: @@ -86,83 +88,84 @@ class Category { */ function getCategoryList() { - return $this->subcat; + return $this->subcat; } - /* + /** * returns a path like: * * { ROOT, Games, Simulation } */ function getCategoryPath() { - $path = array(); - $id = $this->id; - while(1) - { - $result = mysql_query("SELECT catName, catId, catParent FROM appCategory WHERE catId = $id"); - if(!$result || mysql_num_rows($result) != 1) - break; - $cat = mysql_fetch_object($result); - $path[] = array($cat->catId, $cat->catName); - $id = $cat->catParent; - } - $path[] = array(0, "ROOT"); - return array_reverse($path); + $path = array(); + $id = $this->id; + while(1) + { + $result = mysql_query("SELECT catName, catId, catParent FROM appCategory WHERE catId = $id"); + if(!$result || mysql_num_rows($result) != 1) + break; + $cat = mysql_fetch_object($result); + $path[] = array($cat->catId, $cat->catName); + $id = $cat->catParent; + } + $path[] = array(0, "ROOT"); + return array_reverse($path); } - /* + /** * returns a list of applications in the specified category */ function getAppList($id) { - $result = mysql_query("SELECT appId, appName, description FROM ". - "appFamily WHERE catId = $id ". - "ORDER BY appName"); - if(!$result || mysql_num_rows($result) == 0) - return array(); - - $list = array(); + $result = mysql_query("SELECT appId, appName, description FROM ". + "appFamily WHERE catId = $id ". + "ORDER BY appName"); + if(!$result || mysql_num_rows($result) == 0) + return array(); + + $list = array(); while($row = mysql_fetch_object($result)) - { - if($row->appName == "NONAME") - continue; - $list[$row->appId] = array($row->appName, $row->description); - } - return $list; + { + if($row->appName == "NONAME") + continue; + $list[$row->appId] = array($row->appName, $row->description); + } + return $list; } - /* + /** * returns the number of apps in the specified category */ function getAppCount($id, $recurse = 1) { - $total = 0; + $total = 0; - $result = mysql_query("SELECT appId FROM appFamily WHERE catId = $id"); - if($result) - $total += mysql_num_rows($result); + $result = mysql_query("SELECT appId FROM appFamily WHERE catId = $id"); + if($result) + $total += mysql_num_rows($result); - if($recurse) - { - $result = mysql_query("SELECT catId FROM appCategory WHERE catParent = $id"); - if($result) - { - while($ob = mysql_fetch_object($result)) - $total += $this->getAppCount($ob->catId, 1); - } - } - return $total; + if($recurse) + { + $result = mysql_query("SELECT catId FROM appCategory WHERE catParent = $id"); + if($result) + { + while($ob = mysql_fetch_object($result)) + $total += $this->getAppCount($ob->catId, 1); + } + } + return $total; } }; + function appIdToName($appId) { $result = mysql_query("SELECT appName FROM appFamily WHERE appId = $appId"); if(!$result || !mysql_num_rows($result)) - return ""; // shouldn't normally happen + return ""; // shouldn't normally happen $ob = mysql_fetch_object($result); return $ob->appName; } @@ -176,31 +179,30 @@ function versionIdToName($versionId) return $ob->versionName; } -// create the Category: line at the top of appdb pages +/** + * create the Category: line at the top of appdb pages$ + */ function make_cat_path($path) { - global $appId; - global $versionId; - $str = ""; $catCount = 0; while(list($idx, list($id, $name)) = each($path)) - { - if($name == "ROOT") - $catname = "Main"; - else - $catname = $name; + { + if($name == "ROOT") + $catname = "Main"; + else + $catname = $name; - if ($catCount > 0) { $str .= " > "; } - $str .= html_ahref($catname,"appbrowse.php?catId=$id"); - $catCount++; - } + if ($catCount > 0) $str .= " > "; + $str .= html_ahref($catname,"appbrowse.php?catId=$id"); + $catCount++; + } - if($appId) - $str .= " > ".html_ahref(appIdToName($appId),"appview.php?appId=$appId"); + if($_REQUEST['appId']) + $str .= " > ".html_ahref(appIdToName($_REQUEST['appId']),"appview.php?appId=".$_REQUEST['appId']); - if($versionId) - $str .= " > ".html_ahref(versionIdToName($versionId),"appview.php?appId=$appId&versionId=$versionId"); + if($_REQUEST['versionId']) + $str .= " > ".html_ahref(versionIdToName($_REQUEST['versionId']),"appview.php?appId=".$_REQUEST['appId']."&versionId=".$_REQUEST['versionId']); return $str; } diff --git a/include/comments.php b/include/comments.php index 2253439..e566b6c 100644 --- a/include/comments.php +++ b/include/comments.php @@ -1,10 +1,8 @@ -hits; } -/*========================================================================= - * +/** * display nested comments - * * handle is a db result set - * */ function do_display_comments_nested($handle) { while($ob = mysql_fetch_object($handle)) + { + view_app_comment($ob); + $result = grab_comments($ob->appId, $ob->versionId, $ob->commentId); + if($result && mysql_num_rows($result)) { - view_app_comment($ob); - $result = grab_comments($ob->appId, $ob->versionId, $ob->commentId); - if($result && mysql_num_rows($result)) - { - echo "
\n"; - do_display_comments_nested($result); - echo "
\n"; - } + echo "
\n"; + do_display_comments_nested($result); + echo "
\n"; + } } } @@ -151,28 +140,24 @@ function display_comments_nested($appId, $versionId, $threadId) } -/*========================================================================= - * +/** * display threaded comments - * * handle is a db result set - * */ function do_display_comments_threaded($handle, $is_main) { if (!$is_main) - echo "
    \n"; + echo "
      \n"; while ($ob = mysql_fetch_object($handle)) { if ($is_main) { view_app_comment($ob); - } - else + } else { - echo '
    • '. - $ob->subject.' by '.forum_lookup_user($ob->userid).' on '.$ob->time.'
    • '."\n"; + echo '
    • '. + $ob->subject.' by '.forum_lookup_user($ob->userid).' on '.$ob->time.'
    • '."\n"; } $result = grab_comments($ob->appId, $ob->versionId, $ob->commentId); @@ -188,6 +173,7 @@ function do_display_comments_threaded($handle, $is_main) echo "
    \n"; } + function display_comments_threaded($appId, $versionId, $threadId = 0) { $result = grab_comments($appId, $versionId, $threadId); @@ -196,10 +182,8 @@ function display_comments_threaded($appId, $versionId, $threadId = 0) } -/*========================================================================= - * +/** * display flat comments - * */ function display_comments_flat($appId, $versionId) { @@ -212,7 +196,7 @@ function display_comments_flat($appId, $versionId) } } } - + function view_app_comments($appId, $versionId, $threadId = 0) { @@ -231,20 +215,20 @@ function view_app_comments($appId, $versionId, $threadId = 0) // message display mode changer if (loggedin()) { - //FIXME we need to change this so not logged in users can change current view as well + // FIXME we need to change this so not logged in users can change current view as well if ($cmode) - $_SESSION[current]->setpref("comments:mode", $cmode); - - $sel[$_SESSION['current']->getpref("comments:mode")] = 'selected'; - echo '
    ',"\n"; - echo "Application Comments $messageCount total comments "; - echo 'Mode ',"\n"; - echo '
    ',"\n"; + $_SESSION['current']->setpref("comments:mode", $cmode); + + $sel[$_SESSION['current']->getpref("comments:mode")] = 'selected'; + echo '
    ',"\n"; + echo "Application Comments $messageCount total comments "; + echo 'Mode ',"\n"; + echo '
    ',"\n"; } // blank space @@ -266,25 +250,24 @@ function view_app_comments($appId, $versionId, $threadId = 0) //hide or display depending on pref if (loggedin()) - $mode = $_SESSION['current']->getpref("comments:mode"); + $mode = $_SESSION['current']->getpref("comments:mode"); else - $mode = "flat"; + $mode = "flat"; switch ($mode) { case "flat": - display_comments_flat($appId, $versionId); - break; + display_comments_flat($appId, $versionId); + break; case "nested": - display_comments_nested($appId, $versionId, $threadId); - break; + display_comments_nested($appId, $versionId, $threadId); + break; case "threaded": - display_comments_threaded($appId, $versionId, $threadId); - break; + display_comments_threaded($appId, $versionId, $threadId); + break; } echo '',"\n"; - } diff --git a/include/config.php.sample b/include/config.php.sample index b98104a..4b00f97 100644 --- a/include/config.php.sample +++ b/include/config.php.sample @@ -1,5 +1,7 @@ - - - - diff --git a/include/form_edit.php b/include/form_edit.php index 931def0..6a4065d 100644 --- a/include/form_edit.php +++ b/include/form_edit.php @@ -1,41 +1,32 @@ - - - -   User Name - - - -   Password - - - -   Password (again) - - - -   Real Name - - - -   Email Address - - - -   - + +   User Name + + + +   Password + + + +   Password (again) + + + +   Real Name + + + +   Email Address + + + +   + - - diff --git a/include/form_login.php b/include/form_login.php index 76d6571..d6c8c50 100644 --- a/include/form_login.php +++ b/include/form_login.php @@ -1,19 +1,14 @@ -',"\n"; echo html_frame_start("Login to Application DB","400","",0) - ?> - - - - - - - - - - - - +
    User Name '>
    Password
    + + + + + + + + +
    User Name '>
    Password
    - +
    -',"\n"; @@ -54,7 +49,7 @@ echo '',"\n";

    Lost your password?
    [Email a New Password]

    -',"\n"; echo html_frame_start("Create New Application DB Account","400","",0) - ?> - - - - - - - - - - - - - - - - - - - - - +
    User Name '>
    Password
    Password (again)
    Real Name '>
    Email Address '>
    + + + + + + + + + + + + + + + + + + + + - - - -
    User Name '>
    Password
    Password (again)
    Real Name '>
    Email Address '>
    - -
    + + + + + + -',"\n"; diff --git a/include/header.php b/include/header.php index 9e02439..1a69ff3 100644 --- a/include/header.php +++ b/include/header.php @@ -1,10 +1,7 @@ - @@ -12,12 +9,12 @@ - Wine Application DB <?=$title?> + Wine Application DB <?php echo $title; ?> - - + + @@ -27,21 +24,21 @@ - +
    Wine HQWine HQ - +
    - +
    diff --git a/include/incl.php b/include/incl.php index b802f55..458c4a2 100644 --- a/include/incl.php +++ b/include/incl.php @@ -1,11 +1,9 @@ -$text\n"; @@ -172,7 +171,7 @@ function errorpage($text = null, $message = null) -/* +/** * redirect to $url */ function redirect($url) @@ -180,22 +179,20 @@ function redirect($url) header("Location: ".$url); } -/* +/** * redirect back to referer, or else to the main page */ function redirectref($url = null) { - global $HTTP_REFERER; - if(!$url) - $url = $HTTP_REFERER; + $url = $_SERVER['HTTP_REFERER']; if(!$url) - $url = apidb_fullurl(); + $url = apidb_fullurl(); redirect($url); } -/* +/** * msgs will be displayed on the Next page view of the same user */ function addmsg($text, $color = "black") @@ -203,7 +200,7 @@ function addmsg($text, $color = "black") global $PHPSESSID; if($color) - $text = " $text \n"; + $text = " $text \n"; $text = str_replace("'", "\\'", $text); mysql_query("INSERT INTO sessionMessages VALUES (null, null, '$PHPSESSID', '$text')"); @@ -212,7 +209,7 @@ function addmsg($text, $color = "black") -/* +/** * output msg_buffer and clear it. */ function dumpmsgbuffer() @@ -221,20 +218,20 @@ function dumpmsgbuffer() $result = mysql_query("SELECT * FROM sessionMessages WHERE sessionId = '$PHPSESSID'"); if(!$result) - return; + return; while($r = mysql_fetch_object($result)) - { - echo html_frame_start("","300","",5); - echo "
    $r->message
    "; - echo html_frame_end(" "); + { + echo html_frame_start("","300","",5); + echo "
    $r->message
    "; + echo html_frame_end(" "); echo "
    \n"; - } + } mysql_query("DELETE FROM sessionMessages WHERE sessionId = '$PHPSESSID'"); } -/* +/** * Statics */ define("APPDB_ROOT", "http://appdb.winehq.org/"); diff --git a/include/maintainer.php b/include/maintainer.php index bd7de4b..5c89681 100644 --- a/include/maintainer.php +++ b/include/maintainer.php @@ -1,13 +1,16 @@ - \ No newline at end of file +?> diff --git a/include/menu.php b/include/menu.php index 682168d..4ef7b87 100644 --- a/include/menu.php +++ b/include/menu.php @@ -1,14 +1,14 @@ -\n"; + if ($form) + echo "
    \n"; -echo ' + echo '
    @@ -40,38 +40,38 @@ echo ' /* add a table row */ function add($name, $url = null) { - if($url) - { - echo " \n"; - } else { - echo " \n"; - } + if($url) + { + echo " \n"; + } else + { + echo " \n"; + } } function addmisc($stuff, $align = "left") { - echo " \n"; + echo " \n"; } function done($form = null) { - global $apidb_root; + global $apidb_root; -echo ' -
     $name
     $name
     $name
     $name
     $stuff
     $stuff
    - - - -- - - -
    -
    -'; + echo ' + + + + + - + + + +
    + '; - if ($form) - echo "
    \n"; - + if ($form) + echo "\n"; } } ?> diff --git a/include/parsedate.php b/include/parsedate.php index dfa8326..2c93f81 100644 --- a/include/parsedate.php +++ b/include/parsedate.php @@ -1,4 +1,4 @@ -"; + { + //echo "PART($part)
    "; - /* 23:59:59 */ - if(ereg("^([0-9]+):([0-9]+):([0-9]+)$", $part, $arr)) - { - $hour = $arr[1]; - $minute = $arr[2]; - $second = $arr[3]; - continue; - } + /* 23:59:59 */ + if(ereg("^([0-9]+):([0-9]+):([0-9]+)$", $part, $arr)) + { + $hour = $arr[1]; + $minute = $arr[2]; + $second = $arr[3]; + continue; + } - /* 23:59 */ - if(ereg("^([0-9]+):([0-9]+)$", $part, $arr)) - { - $hour = $arr[1]; - $minute = $arr[2]; - $second = 0; - continue; - } + /* 23:59 */ + if(ereg("^([0-9]+):([0-9]+)$", $part, $arr)) + { + $hour = $arr[1]; + $minute = $arr[2]; + $second = 0; + continue; + } - /* 2000-12-31 (mysql date format) */ - if(ereg("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$", $part, $arr)) - { - $year = $arr[1]; - $month = $arr[2]; - $day = $arr[3]; - continue; - } + /* 2000-12-31 (mysql date format) */ + if(ereg("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$", $part, $arr)) + { + $year = $arr[1]; + $month = $arr[2]; + $day = $arr[3]; + continue; + } - if(defined($ampm[$part])) - { - $hour += $ampm[$part]; - continue; - } - if($monthnames[substr($part, 0, 3)]) - { - $month = $monthnames[substr($part, 0, 3)]; - continue; - } + if(defined($ampm[$part])) + { + $hour += $ampm[$part]; + continue; + } - if($part > 1900) - { - $year = $part; - continue; - } - if($part > 31) - { - $year = 1900 + $part; - continue; - } - if($part >= 1 && $part <= 31) - { - $day = $part; - continue; - } + if($monthnames[substr($part, 0, 3)]) + { + $month = $monthnames[substr($part, 0, 3)]; + continue; + } + + if($part > 1900) + { + $year = $part; + continue; + } + + if($part > 31) + { + $year = 1900 + $part; + continue; + } + + if($part >= 1 && $part <= 31) + { + $day = $part; + continue; + } - //echo "Unparsed: '$part'
    \n"; + //echo "Unparsed: '$part'
    \n"; - } + } return mktime($hour, $minute, $second, $month, $day, $year); } diff --git a/include/pn_buttons.php b/include/pn_buttons.php index 716c093..15cd0dc 100644 --- a/include/pn_buttons.php +++ b/include/pn_buttons.php @@ -1,76 +1,73 @@ - 0) - { - $vars["curPos"] = $curPos - $linesPerPage; - $prev_url = "stdquery.php?".build_urlarg($vars); - } + // define previous/next buttons + if($curPos > 0) + { + $vars["curPos"] = $curPos - $linesPerPage; + $prev_url = "stdquery.php?".build_urlarg($vars); + } - if($endpos < $totalCount) - { - $vars["curPos"] = $curPos + $linesPerPage; - $next_url = "stdquery.php?".build_urlarg($vars); - } - - // show prev button if nessessary - if($prev_url) - { - echo html_b(html_ahref("<< Prev", $prev_url)); - } + if($endpos < $totalCount) + { + $vars["curPos"] = $curPos + $linesPerPage; + $next_url = "stdquery.php?".build_urlarg($vars); + } - // show numbered links - if(!$useNextOnly && $endpos <= $totalCount) - { - while($buttonCount <= $numButtons + 1) - { - if($curPage == ($buttonCount - 1)) - { - echo html_b("$buttonCount"); - } - else - { - $vars["curPos"] = ($buttonCount - 1) * $linesPerPage; - $url = "stdquery.php?".build_urlarg($vars); - echo " ".html_ahref("$buttonCount", $url)." "; - } + // show prev button if nessessary + if($prev_url) + { + echo html_b(html_ahref("<< Prev", $prev_url)); + } - if(!($buttonCount % 40)) - { - echo html_p(); - } - $buttonCount++; - } - + // show numbered links + if(!$useNextOnly && $endpos <= $totalCount) + { + while($buttonCount <= $numButtons + 1) + { + if($curPage == ($buttonCount - 1)) + { + echo html_b("$buttonCount"); + } else + { + $vars["curPos"] = ($buttonCount - 1) * $linesPerPage; + $url = "stdquery.php?".build_urlarg($vars); + echo " ".html_ahref("$buttonCount", $url)." "; + } + + if(!($buttonCount % 40)) + { + echo html_p(); + } + $buttonCount++; } - - // show next button if nessessary - if($next_url) - { - echo html_b(html_ahref("Next >>", $next_url)); - } - - echo "
    ".html_small("listing $numRows record".($numRows == 1 ? "" : "s")." ".($curPos+1)." to $endpos of $totalCount total"); + } + // show next button if nessessary + if($next_url) + { + echo html_b(html_ahref("Next >>", $next_url)); + } + + echo "
    ".html_small("listing $numRows record".($numRows == 1 ? "" : "s")." ".($curPos+1)." to $endpos of $totalCount total"); } ?> diff --git a/include/qclass.php b/include/qclass.php index 79fffd0..e284209 100644 --- a/include/qclass.php +++ b/include/qclass.php @@ -1,8 +1,10 @@ -
    - Vendor Name: - (leave blank to match all) - (leave blank to match all) +

    @@ -20,18 +20,17 @@ Edit mode
    \n"; ?>
    Entries Per Page: - -
    + +
    - diff --git a/include/query_apps.php b/include/query_apps.php index 9b04132..c5dd288 100644 --- a/include/query_apps.php +++ b/include/query_apps.php @@ -1,4 +1,3 @@ - @@ -8,46 +7,45 @@
    - - App Name: - (leave blank to match all) - - - - -

    - Verbose query results
    - Edit mode
    \n"; ?> + + App Name: + (leave blank to match all) + + + + +

    + Verbose query results
    + Edit mode
    \n"; ?> -
    Rating - or higher - - +
    Rating + or higher -
    Entries Per Page: - -
    + + +
    Entries Per Page: + +
    - diff --git a/include/query_inc.php b/include/query_inc.php index 09d16ca..5df0667 100644 --- a/include/query_inc.php +++ b/include/query_inc.php @@ -6,182 +6,176 @@ include(BASE."include/"."appbyvendor_inc.php"); function initFields() { - global $fields, $orderby, $join, $searchfor, $searchwhat; + global $fields, $orderby, $join, $searchfor, $searchwhat; - $fields = ""; - $searchfor = ""; - $searchwhat = ""; - $join = ""; - $orderby = ""; + $fields = ""; + $searchfor = ""; + $searchwhat = ""; + $join = ""; + $orderby = ""; } -/* +/** * perform a sql query */ function twinedb_query($query, $vars) { - // imports vars into symbol table - extract($vars); + // imports vars into symbol table + extract($vars); - if(debugging()) - echo "QUERY: $query

    "; + if(debugging()) + echo "QUERY: $query

    "; - // Only permit sql SELECT statements - if(!eregi("^select .*$", $query)) - { - echo " Invalid SQL Query "; - echo "
    $query
    "; - return; - } + // Only permit sql SELECT statements + if(!eregi("^select .*$", $query)) + { + echo " Invalid SQL Query "; + echo "
    $query
    "; + return; + } - opendb(); - - $tmpq = str_replace("\\", "", $query); + opendb(); + $tmpq = str_replace("\\", "", $query); - $endPos=$curPos+$linesPerPage; - $tcurpos = $curPos+$startapi; - $tendpos = $endPos+$startapi; - - // set a limit if not already set - if(!stristr($query, "limit")) - $tmpq .= " LIMIT $tcurpos,$linesPerPage"; + $endPos=$curPos+$linesPerPage; + $tcurpos = $curPos+$startapi; + $tendpos = $endPos+$startapi; - // execute the db query - $tstamp = time(); - $result = mysql_query($tmpq); - $tstamp = time() - $tstamp; - - if(debugging()) - echo " QUERY TIME: $tstamp seconds
    \n"; + // set a limit if not already set + if(!stristr($query, "limit")) + $tmpq .= " LIMIT $tcurpos,$linesPerPage"; - // query error! - if(!$result) - { - echo "$query

    \n"; - echo "A QUERY error occurred: ".mysql_error()."\n"; - exit; - } + // execute the db query + $tstamp = time(); + $result = mysql_query($tmpq); + $tstamp = time() - $tstamp; - $numRows = mysql_num_rows($result); - $numCols = mysql_num_fields($result); + if(debugging()) + echo " QUERY TIME: $tstamp seconds
    \n"; - $curPage = $curPos/$linesPerPage; - $tmendpos = $curPos + $numRows; - $explain = "stdquery.php?query=".urlencode("EXPLAIN $tmpq"); + // query error! + if(!$result) + { + echo "$query

    \n"; + echo "A QUERY error occurred: ".mysql_error()."\n"; + exit; + } + + $numRows = mysql_num_rows($result); + $numCols = mysql_num_fields($result); + + $curPage = $curPos/$linesPerPage; + $tmendpos = $curPos + $numRows; + $explain = "stdquery.php?query=".urlencode("EXPLAIN $tmpq"); - echo html_br(2); + echo html_br(2); - // set $debug to enable query debugging - if($debug || stristr($tmpq, "explain")) - { - $str = eregi_replace("(SELECT|EXPLAIN|DISTINCT|FROM|WHERE|AND". - "|OR |IS NULL|IS NOT NULL|LIMIT|ORDER BY". - "|GROUP BY)", - "
    \\1
    ", $tmpq); - echo "
    $str
    \n"; - } + // set $debug to enable query debugging + if($debug || stristr($tmpq, "explain")) + { + $str = eregi_replace("(SELECT|EXPLAIN|DISTINCT|FROM|WHERE|AND". + "|OR |IS NULL|IS NOT NULL|LIMIT|ORDER BY". + "|GROUP BY)", + "
    \\1
    ", $tmpq); + echo "
    $str
    \n"; + } - echo html_echo("

    "); + echo html_echo("
    "); - add_pn_buttons($vars, $tmendpos); - echo html_br(2); + add_pn_buttons($vars, $tmendpos); + echo html_br(2); + + // output table header + echo html_table_begin("width='80%' cellspacing=1 border=0 rules=rows frame=hsides"); + $helems = array(); + for($k = 0; $k < $numCols; $k++) + { + $name = mysql_field_name($result, $k); + $helems[] = $name; + if($name == "apiid") + $have_apiid = 1; + } + echo html_th($helems, "title"); + + $curapiid=0; + $curName="[NONAME]"; + + for($i = 0; $i < $numRows; $i++) + { + $row = mysql_fetch_array($result, MYSQL_BOTH); + $color = ($i % 2); + $arr = array(); - // output table header - echo html_table_begin("width='80%' cellspacing=1 border=0 rules=rows frame=hsides"); - $helems = array(); for($k = 0; $k < $numCols; $k++) { - $name = mysql_field_name($result, $k); - $helems[] = $name; - if($name == "apiid") - $have_apiid = 1; - } - echo html_th($helems, "title"); + $fname = mysql_field_name($result, $k); + if($fname == "username") + { + $username = $row[$k]; + $userid = $row["userid"]; + $arr[] = html_ahref($username." ", apidb_url("edituser.php?userid=$userid&username=$username")); + continue; + } - $curapiid=0; - $curName="[NONAME]"; + if($fname == "vendorName") + { + initFields(); + $url = "vendorview.php?vendorId=".$row["vendorId"]; + $arr[] = html_ahref($row[$k], $url); + continue; + } - for($i = 0; $i < $numRows; $i++) - { - $row = mysql_fetch_array($result, MYSQL_BOTH); - $color = ($i % 2); - $arr = array(); + if($fname == "appName") + { + initFields(); + $url = "appview.php?appId=".$row["appId"]; + $arr[] = html_ahref($row[$k], $url); + continue; + } - for($k = 0; $k < $numCols; $k++) - { - $fname = mysql_field_name($result, $k); - - - if($fname == "username") - { - $username = $row[$k]; - $userid = $row["userid"]; - $arr[] = html_ahref($username." ", apidb_url("edituser.php?userid=$userid&username=$username")); - continue; - } + if($fname == "versionName") + { + $versionId = $row["versionId"]; + $url = "admin/editAppVersion.php?versionId=$versionId"; + $arr[] = html_ahref($row[$k], $url); + continue; + } - if($fname == "vendorName") - { - initFields(); - $url = "vendorview.php?vendorId=".$row["vendorId"]; - $arr[] = html_ahref($row[$k], $url); - continue; - } + if($fname == "webPage") + { + $url = $row[$k]; + $theLink = "$url"; + $arr[] = html_ahref($url, $theLink); - if($fname == "appName") - { - initFields(); - $url = "appview.php?appId=".$row["appId"]; - $arr[] = html_ahref($row[$k], $url); - continue; + continue; + } - } - - if($fname == "versionName") - { - $versionId = $row["versionId"]; - $url = "admin/editAppVersion.php?versionId=$versionId"; - $arr[] = html_ahref($row[$k], $url); - continue; - } - - if($fname == "webPage") - { - - $url = $row[$k]; - $theLink = "$url"; - $arr[] = html_ahref($url, $theLink); - - continue; - } - - if(mysql_field_type($result, $k) == "int") - { - $val = (int)$row[$k]; - $arr[] = "
    $val
    "; - } - else - { - if(!$row[$k]) - $arr[] = " "; - else - $arr[] = "$row[$k]"; - } - } - - echo html_tr($arr, "color$color"); + if(mysql_field_type($result, $k) == "int") + { + $val = (int)$row[$k]; + $arr[] = "
    $val
    "; + } else + { + if(!$row[$k]) + $arr[] = " "; + else + $arr[] = "$row[$k]"; + } } - echo html_table_end(); - echo html_br(); + echo html_tr($arr, "color$color"); + } - add_pn_buttons($vars, $tmendpos); - echo html_echo("
    "); + echo html_table_end(); + echo html_br(); - mysql_free_result($result); - closedb(); + add_pn_buttons($vars, $tmendpos); + echo html_echo("
    "); + + mysql_free_result($result); + closedb(); } diff --git a/include/query_users.php b/include/query_users.php index b5c9259..8b00f30 100644 --- a/include/query_users.php +++ b/include/query_users.php @@ -1,56 +1,52 @@ - -
    + - +
    - - - - + + + + - - - - + + + + - - - + + + -
    Pattern
    (leave blank to match all)
    Pattern
    (leave blank to match all)
    Entries Per Page - -
    Entries Per Page + +
    + - - - - - - - -
    + + + + + + + + - - - - - - + + + + - +
    Entries Per Page: + +
    + + +
    Search Vendors -
    -
    - - Pattern: - (leave blank to match all) - - - - -

    - Verbose query results
    - Edit mode
    \n"; ?> +
    Search Vendors
    + + + Pattern: + (leave blank to match all) + + + + +

    + Verbose query results
    + Edit mode
    \n"; ?> -
    Entries Per Page: - -
    - -
    - diff --git a/include/rating.php b/include/rating.php index 4799423..7b015c3 100644 --- a/include/rating.php +++ b/include/rating.php @@ -1,18 +1,8 @@ -connect(); + $this->connect(); } function connect() { - $this->link = opendb(); + $this->link = opendb(); } - /* + /** * check if a user exists * returns TRUE if the user exists */ function exists($username) { - $result = mysql_query("SELECT * FROM user_list WHERE username = '$username'", $this->link); - if(!$result || mysql_num_rows($result) != 1) - return 0; - return 1; + $result = mysql_query("SELECT * FROM user_list WHERE username = '$username'", $this->link); + if(!$result || mysql_num_rows($result) != 1) + return 0; + return 1; } @@ -58,21 +57,24 @@ class User { return $ob->userid; } + function lookup_realname($userid) { - $result = mysql_query("SELECT realname FROM user_list WHERE userid = $userid"); - if(!$result || mysql_num_rows($result) != 1) - return null; - $ob = mysql_fetch_object($result); - return $ob->realname; + $result = mysql_query("SELECT realname FROM user_list WHERE userid = $userid"); + if(!$result || mysql_num_rows($result) != 1) + return null; + $ob = mysql_fetch_object($result); + return $ob->realname; } + function lookup_email($userid) { return lookupEmail($userid); } - /* + + /** * restore a user from the database * returns 0 on success and an error msg on failure */ @@ -82,7 +84,6 @@ class User { "created, status, perm FROM user_list WHERE ". "username = '$username' AND ". "password = password('$password')", $this->link); - //echo "RESTORE($username, $password) result=$result rows=".mysql_num_rows($result)."
    \n"; if(!$result) return "Error: ".mysql_error($this->link); @@ -92,7 +93,6 @@ class User { list($this->stamp, $this->userid, $this->username, $this->realname, $this->created, $status, $perm) = mysql_fetch_row($result); - //echo "
    User: $this->userid ($this->username, $this->realname)
    \n"; return 0; } @@ -105,8 +105,6 @@ class User { if($result != null) return $result; - //echo "
    LOGIN($this->username)
    \n"; - /* update the 'stamp' field in the users account to reflect the last time */ /* they logged in */ $myUserId = $this->lookup_userid($username); @@ -114,6 +112,7 @@ class User { return 0; } + /* * create a new user * returns 0 on success and an error msg on failure @@ -123,13 +122,15 @@ class User { $result = mysql_query("INSERT INTO user_list VALUES ( NOW(), 0, ". "'$username', password('$password'), ". "'$realname', '$email', NOW(), 0, 0)", $this->link); - //echo "error: ".mysql_error(); if(!$result) return mysql_error($this->link); return $this->restore($username, $password); } - // Update User Account; + + /** + * Update User Account; + */ function update($userid = 0, $password = null, $realname = null, $email = null) { if (!$userid) @@ -139,13 +140,13 @@ class User { if (!mysql_query("UPDATE user_list SET password = password('$password') WHERE userid = $userid")) return 0; } - + if ($realname) { if (!mysql_query("UPDATE user_list SET realname = '".addslashes($realname)."' WHERE userid = $userid")) return 0; } - + if ($email) { if (!mysql_query("UPDATE user_list SET email = '".addslashes($email)."' WHERE userid = $userid")) @@ -154,7 +155,7 @@ class User { return 1; } - /* + /** * remove the current, or specified user from the database * returns 0 on success and an error msg on failure */ @@ -191,6 +192,7 @@ class User { return $ob->value; } + function setpref($key, $value) { if(!$this->userid || !$key || !$value) @@ -201,9 +203,9 @@ class User { echo mysql_error(); return $result ? true : false; } - - /* + + /** * check if this user has $priv */ function checkpriv($priv) @@ -217,7 +219,8 @@ class User { return mysql_num_rows($result); } - /* + + /** * check if this user is an maintainer of a given appId/versionId */ function is_maintainer($appId, $versionId) @@ -239,6 +242,7 @@ class User { return mysql_num_rows($result); } + /* * check if this user is an maintainer of a given appId/versionId */ @@ -254,6 +258,7 @@ class User { return mysql_num_rows($result); } + function addpriv($priv) { if(!$this->userid || !$priv) @@ -266,6 +271,7 @@ class User { return $result; } + function delpriv($priv) { if(!$this->userid || !$priv) @@ -275,9 +281,8 @@ class User { return $result; } - - /*========================================================================= - * + + /** * App Owners * */ @@ -292,23 +297,22 @@ class User { - function loggedin() { if(isset($_SESSION['current']) && $_SESSION['current']->userid) - return true; - + return true; return false; } + function havepriv($priv) { if(!loggedin()) return false; - return $_SESSION['current']->checkpriv($priv); } + function isMaintainer($appId, $versionId) { if(!loggedin()) @@ -317,6 +321,7 @@ function isMaintainer($appId, $versionId) return $_SESSION['current']->is_maintainer($appId, $versionId); } + function isSuperMaintainer($appId) { if(!loggedin()) @@ -325,10 +330,11 @@ function isSuperMaintainer($appId) return $_SESSION['current']->is_super_maintainer($appId); } + function debugging() { if(!loggedin()) - return false; + return false; return $_SESSION['current']->getpref("debug") == "yes"; } @@ -343,7 +349,10 @@ function makeurl($text, $url, $pref = null) return " $text \n"; } -// create a new random password + +/** + * create a new random password + */ function generate_passwd($pass_len = 10) { $nps = ""; @@ -356,6 +365,7 @@ function generate_passwd($pass_len = 10) return ($nps); } + function lookupUsername($userid) { $result = mysql_query("SELECT username FROM user_list WHERE userid = $userid"); @@ -365,6 +375,7 @@ function lookupUsername($userid) return $ob->username; } + function lookupEmail($userid) { $result = mysql_query("SELECT email FROM user_list WHERE userid = $userid"); @@ -374,6 +385,7 @@ function lookupEmail($userid) return $ob->email; } + function UserWantsEmail($userid) { $result = mysql_query("SELECT * FROM user_prefs WHERE userid = $userid AND name = 'send_email'"); @@ -385,7 +397,8 @@ function UserWantsEmail($userid) return ($ob->value == 'no' ? false : true); } -/* + +/** * get the email address of people to notify for this appId and versionId */ function getNotifyEmailAddressList($appId, $versionId) @@ -431,7 +444,10 @@ function getNotifyEmailAddressList($appId, $versionId) return $retval; } -/* Get the number of users in the database */ + +/** + * Get the number of users in the database + */ function getNumberOfUsers() { $result = mysql_query("SELECT count(*) as num_users FROM user_list;"); @@ -439,7 +455,10 @@ function getNumberOfUsers() return $row->num_users; } -/* Get the number of active users within $days of the current day */ + +/** + * Get the number of active users within $days of the current day + */ function getActiveUsersWithinDays($days) { $result = mysql_query("SELECT count(*) as num_users FROM user_list WHERE stamp >= DATE_SUB(CURDATE(), interval $days day);"); diff --git a/include/vote.php b/include/vote.php index 1facfe6..945517a 100644 --- a/include/vote.php +++ b/include/vote.php @@ -1,42 +1,44 @@ -userid; - else - return 0; - } + { + if(loggedin()) + $userId = $_SESSION['current']->userid; + else + return 0; +} $result = mysql_query("SELECT * FROM appVotes WHERE appId = $appId AND userId = $userId"); return mysql_num_rows($result); } -/* + +/** * total votes by userId */ function vote_count_user_total($userId = null) { if(!$userId) - { - if(loggedin()) - $userId = $_SESSION['current']->userid; - else - return 0; - } + { + if(loggedin()) + $userId = $_SESSION['current']->userid; + else + return 0; + } $result = mysql_query("SELECT * FROM appVotes WHERE userId = $userId"); return mysql_num_rows($result); } + /* * total votes for appId */ @@ -47,9 +49,7 @@ function vote_count_app_total($appId) } - - -/* +/** * add a vote for appId */ function vote_add($appId, $slot, $userId = null) @@ -71,7 +71,7 @@ function vote_add($appId, $slot, $userId = null) } -/* +/** * remove vote for appId */ function vote_remove($appId, $slot, $userId = null) @@ -88,27 +88,27 @@ function vote_remove($appId, $slot, $userId = null) mysql_query("DELETE FROM appVotes WHERE appId = $appId AND userId = $userId AND slot = $slot"); } + function vote_get_user_votes($userId = null) { - - if(!$userId) - { - if(loggedin()) - $userId = $_SESSION['current']->userid; - if(!$userId) - return array(); - } + { + if(loggedin()) + $userId = $_SESSION['current']->userid; + if(!$userId) + return array(); + } $result = mysql_query("SELECT * FROM appVotes WHERE userId = $userId"); if(!$result) - return array(); + return array(); $obs = array(); while($ob = mysql_fetch_object($result)) - $obs[$ob->slot] = $ob; + $obs[$ob->slot] = $ob; return $obs; } + function vote_menu() { global $appId; @@ -119,26 +119,26 @@ function vote_menu() $votes = vote_get_user_votes(); if($votes[1]) - { - $str = " App #".$votes[1]->appId.""; - $m->add(" ".$str); - } + { + $str = " App #".$votes[1]->appId.""; + $m->add(" ".$str); + } else - $m->add(" No App Selected"); + $m->add(" No App Selected"); if($votes[2]) - { - $str = " App #".$votes[2]->appId.""; - $m->add(" ".$str); - } + { + $str = " App #".$votes[2]->appId.""; + $m->add(" ".$str); + } else $m->add(" No App Selected"); if($votes[3]) - { + { $str = " App #".$votes[3]->appId.""; $m->add(" ".$str); - } + } else $m->add(" No App Selected"); @@ -159,21 +159,20 @@ function vote_menu() function dump($arr) { while(list($key, $val) = each($arr)) - { - echo "$key => $val
    \n"; - } + { + echo "$key => $val
    \n"; + } } + function vote_update($vars) { - - //FIXME this doesn't work since msgs only work when logged in - if(!$_SESSION['current']) - { - addmsg("You must be logged in to vote", "red"); - return; - } + if(!loggedin()) + { + addmsg("You must be logged in to vote", "red"); + return; + } dump($vars); echo "
    \n"; diff --git a/index.php b/index.php index a582199..1351c67 100644 --- a/index.php +++ b/index.php @@ -1,10 +1,7 @@ - -

    Welcome

    - -

    This is the Wine Application Database. From here you get info on application - compatibility with Wine. For developers, you can get information on the APIs used in an - application.

    - -

    Most of the features of the Application database require that you have a user account and - are logged in. Some of the benefits of membership are:

    - -

      -
    • Ability to Vote on Favorite Applications
    • -
    • Access to the Application Rating System. Rate the apps that "Don't Suck"
    • -
    • Ability to customize the View of the Apps DB and Comment System
    • -
    • Take Credit for your witty posts
    • -
    • Ability to sign up to be an application maintainer.
    • -
    +

    Welcome

    -

    So what are you waiting for, [login now]. Your help in - stomping out Wine issues will be greatly appreciated.

    +

    This is the Wine Application Database. From here you get info on application +compatibility with Wine. For developers, you can get information on the APIs used in an +application.

    -

    - If you have anything to contribute (screenshots, howtos), contact us at: - appdb@winehq.org
    - Note that this address is not for end-user support, for end user support please contact the - wine-users mailing list or the wine newsgroup, for more information visit - this page -

    -Most of the features of the Application database require that you have a user account and +are logged in. Some of the benefits of membership are:

    + +

      +
    • Ability to Vote on Favorite Applications
    • +
    • Access to the Application Rating System. Rate the apps that "Don't Suck"
    • +
    • Ability to customize the View of the Apps DB and Comment System
    • +
    • Take Credit for your witty posts
    • +
    • Ability to sign up to be an application maintainer.
    • +
    + +

    So what are you waiting for, [login now]. Your help in +stomping out Wine issues will be greatly appreciated.

    + +

    +If you have anything to contribute (screenshots, howtos), contact us at: +appdb@winehq.org
    +Note that this address is not for end-user support, for end user support please contact the +wine-users mailing list or the wine newsgroup, for more information visit +this page +

    +Dimitrie O -Acrobat Reader"; ?> 5.0.5 @@ -89,7 +86,7 @@ direct formatting related flames to Dimitrie O -WS-FTP LE"; ?> 5.08 @@ -100,7 +97,7 @@ direct formatting related flames to Dimitrie O -mIRC"; ?> 6.03 @@ -111,7 +108,7 @@ direct formatting related flames to Dimitrie O -Putty"; ?> 0.52 @@ -122,7 +119,7 @@ direct formatting related flames to Dimitrie O -FTP Commander"; ?> 5.58 @@ -133,7 +130,7 @@ direct formatting related flames to Dimitrie O -Pegasus Mail"; ?> 4.02 @@ -144,7 +141,7 @@ direct formatting related flames to Dimitrie O -12Ghosts Zip"; ?> XP/31 @@ -155,7 +152,7 @@ direct formatting related flames to Dimitrie O -WinMerge"; ?> 2.1.4 @@ -166,7 +163,7 @@ direct formatting related flames to Dimitrie O -FileZilla"; ?> 2.2.2 @@ -186,8 +183,8 @@ direct formatting related flames to Dimitrie O -WinZip"; +WinZip"; ?> 8.1 The most popular compression utility for Windows just got better. @@ -199,8 +196,8 @@ direct formatting related flames to Dimitrie O -ICQ"; +ICQ"; ?> 2002a The new and improved ICQ is here with all the great features you've come to expect -- plus a whole new set! @@ -214,8 +211,8 @@ direct formatting related flames to Dimitrie O -Winamp"; +Winamp"; ?> 3.0 This program has so many possibilities and offers such a wide @@ -227,8 +224,8 @@ range of interfaces, you'll need no other player. -WinRAR"; +WinRAR"; ?> 3.00 This is a version of the popular RAR compression format, offering significantly improved compression ratios. @@ -243,21 +240,21 @@ range of interfaces, you'll need no other player. -WinMX"; +WinMX"; ?> 3.22 Take file sharing to a new level. 50 Install: Yes (Dlls installed none)
    Run: Yes. (listbox is not working in it (comctl32)) - + [TODO] -SnagIt"; +SnagIt"; ?> 6.1.1 Use this to capture and manage images, text, and video. @@ -282,6 +279,6 @@ application site. The site contains tips and howtos on getting listed apps to ru

     

    - diff --git a/maintainerdelete.php b/maintainerdelete.php index 7bbc270..9f0e13a 100644 --- a/maintainerdelete.php +++ b/maintainerdelete.php @@ -1,4 +1,4 @@ -userid' AND appId = '$appId' AND superMaintainer = '$superMaintainer';"; + $query = "DELETE FROM appMaintainers WHERE userId = '$_SESSION['current']->userid' AND appId = '$appId' AND superMaintainer = '$superMaintainer';"; else - $query = "DELETE FROM appMaintainers WHERE userId = '$current->userid' AND appId = '$appId' AND versionId = '$versionId' AND superMaintainer = '$superMaintainer';"; + $query = "DELETE FROM appMaintainers WHERE userId = '$_SESSION['current']->userid' AND appId = '$appId' AND versionId = '$versionId' AND superMaintainer = '$superMaintainer';"; echo "$query"; diff --git a/maintainersubmit.php b/maintainersubmit.php index 9352b40..ab142e0 100644 --- a/maintainersubmit.php +++ b/maintainersubmit.php @@ -1,4 +1,4 @@ -
) diff --git a/noteview.php b/noteview.php index 66fb371..3826cef 100644 --- a/noteview.php +++ b/noteview.php @@ -1,9 +1,7 @@ - diff --git a/preferences.php b/preferences.php index 11176c8..8e534c9 100644 --- a/preferences.php +++ b/preferences.php @@ -1,4 +1,4 @@ -

\n"; +echo "

\n"; echo "\n"; diff --git a/search.php b/search.php index 09fb264..be21229 100644 --- a/search.php +++ b/search.php @@ -1,4 +1,4 @@ - -

Who Can Help Me Out?

- -

- If you have questions, comments on the Wine Application Database, you can contact - us at appdb@winehq.org. -

- -

- If you notice something that seems to be wrong, or busticated, there is a way you can - help us out.
- We also have a Bug Tracking Database - where you can register bugs. This is the best way to get problems fixed. You can go directly - to the App DB Bug Database by following this - link. -

- -

- If you need more information on the Wine Project itself, there are plenty of resources. -

- - -Who Can Help Me Out?

+

+If you have questions, comments on the Wine Application Database, you can contact +us at appdb@winehq.org. +

+ +

+If you notice something that seems to be wrong, or busticated, there is a way you can +help us out.
+We also have a Bug Tracking Database +where you can register bugs. This is the best way to get problems fixed. You can go directly +to the App DB Bug Database by following this +link. +

+ +

+If you need more information on the Wine Project itself, there are plenty of resources. +

+ + + diff --git a/updaterating.php b/updaterating.php index 0325d6d..db8b231 100644 --- a/updaterating.php +++ b/updaterating.php @@ -1,4 +1,4 @@ -