Author: dgoette
Date: Thu Apr 16 11:48:57 2009
New Revision: 374
URL:
http://svn.reactos.org/svn/reactos?rev=374&view=rev
Log:
* move user_functions.php to CUser.class.php
* merge test_bar.php into Item_Tests.class.php
* move nocomp/*_submit.php to Submit_*.class.php
* move inc/tools to notools
Added:
branches/danny-web/www/www.reactos.org/compat/lib/om/CUser.class.php (props
changed)
- copied unchanged from r369,
branches/danny-web/reactos.org/htdocs/compat/inc/tools/user_functions.php
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Item.class.php (props
changed)
- copied unchanged from r369,
branches/danny-web/reactos.org/htdocs/compat/nocomp/comp_item_submit.php
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Screenshot.cl…
(contents, props changed)
- copied, changed from r369,
branches/danny-web/reactos.org/htdocs/compat/nocomp/comp_item_screenshot_su…
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Test.class.php
(contents, props changed)
- copied, changed from r369,
branches/danny-web/reactos.org/htdocs/compat/nocomp/comp_item_tests_submit.…
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Version.class…
(props changed)
- copied unchanged from r369,
branches/danny-web/reactos.org/htdocs/compat/nocomp/comp_itemver_submit.php
branches/danny-web/www/www.reactos.org/compat/notools/ (props changed)
- copied from r369,
branches/danny-web/reactos.org/htdocs/compat/inc/tools/
Removed:
branches/danny-web/www/www.reactos.org/compat/inc/
branches/danny-web/www/www.reactos.org/compat/notools/test_bar.php
branches/danny-web/www/www.reactos.org/compat/notools/user_functions.php
Modified:
branches/danny-web/www/www.reactos.org/compat/index.php
branches/danny-web/www/www.reactos.org/compat/lib/view/HTML_Group.class.php
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Bugs.class.php
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Comments.class.…
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Details.class.p…
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Screenshots.cla…
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Tests.class.php
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Tips.class.php
Modified:
branches/danny-web/www/www.reactos.org/compat/index.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/index.php [iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/index.php [iso-8859-1] Thu Apr 16
11:48:57 2009
@@ -123,149 +123,160 @@
require_once('rsdb_config.php');
// Tools
- require_once("inc/tools/forum_bar.php");
- require_once("inc/tools/test_bar.php");
- require_once("inc/tools/osversion.php");
- require_once("inc/tools/user_functions.php");
- require_once("inc/tools/plugins.php");
-
- switch (@$_GET['page']) {
-
- // Frontpage
- case '':
- case 'home':
- new Home();
- break;
-
- // RSDB About Page
- case 'about':
- new About();
- break;
-
- // RSDB Submit Conditions Page
- case 'conditions':
- new Conditions();
- break;
-
- // Browse by category
- case 'category':
- new HTML_Category();
- break;
-
- // Browse by name
- case 'name':
- new HTML_Name();
- break;
-
- // browse by Vendor/Company
- case 'vendor':
- new HTML_Vendor();
- break;
-
- // Vendor information
- case 'vendor_info':
- new HTML_VendorInfo();
- break;
-
- // Rank
- case 'rank':
- new Rank();
- break;
-
- // Rank
- case 'group':
- new HTML_Group();
- break;
-
- // show specific version
- case 'item':
- switch (@$_GET['item2']) {
+ require_once("notools/forum_bar.php");
+ require_once("notools/osversion.php");
+ require_once("notools/plugins.php");
+
+switch (@$_GET['page']) {
+
+ // Frontpage
+ case '':
+ case 'home':
+ new Home();
+ break;
+
+ // RSDB About Page
+ case 'about':
+ new About();
+ break;
+
+ // RSDB Submit Conditions Page
+ case 'conditions':
+ new Conditions();
+ break;
+
+ // Browse by category
+ case 'category':
+ new HTML_Category();
+ break;
+
+ // Browse by name
+ case 'name':
+ new HTML_Name();
+ break;
+
+ // browse by Vendor/Company
+ case 'vendor':
+ new HTML_Vendor();
+ break;
+
+ // Vendor information
+ case 'vendor_info':
+ new HTML_VendorInfo();
+ break;
+
+ // Rank
+ case 'rank':
+ new Rank();
+ break;
+
+ // Rank
+ case 'group':
+ new HTML_Group();
+ break;
+
+ // show specific version
+ case 'item':
+ switch (@$_GET['addbox']) {
+ case 'add':
+ case 'submit':
+ switch (@$_GET['item2']) {
+
+ // Screenshots
+ case 'screens':
+ new Submit_Screenshot();
+ break;
+
+ // Test Reports
+ case 'tests':
+ new Submit_Test();
+ break;
+ } // end switch item2
+ break;
+
+ // no addbox crap
+ case '':
+ default:
+ switch (@$_GET['item2']) {
// Details
case 'details':
- default:
- new Item_Details();
- break;
-
- // Screenshots
- case 'screens':
- switch (@$_GET['addbox']) {
- case "add":
- case "submit":
- include('inc/comp/comp_item_screenshot_submit.php');
- break;
- case '':
- default:
- new Item_Screenshots();
- break;
- }
- break;
-
- // Test Reports
- case 'tests':
- switch (@$_GET['addbox']) {
- case '':
- default:
- new Item_Tests();
- break;
- case "add":
- case "submit":
- include('inc/comp/comp_item_tests_submit.php');
- break;
- }
- break;
-
- // Comments
- case 'forum':
- new Item_Comments();
- break;
-
- // Known Bugs
- case 'bugs':
- new Item_Bugs();
- break;
-
- // Tips & Tricks
- case 'tips':
- new Item_Tips();
- break;
- }
- break;
-
- // Search
- case 'search':
- new HTML_Search();
- break;
-
- // Category
- case "submit":
- include("inc/comp/comp_item_submit.php");
- break;
-
- // Help
- case 'help':
- new Help();
- break;
-
- default:
- echo '404';
- break;
- case "dat": // export data
- switch (@$_GET['export']) {
- case "grpitemlst": /* Compatibility versions list for one item */
- include("inc/comp/data/group_item_list.php");
- break;
- case "grplst": /* AppGroup - Search results */
- include("inc/comp/data/group_list.php");
- break;
- case "vdrlst": /* Vendor - Search results */
- include("inc/comp/data/vendor_list.php");
- break;
- case "compitemsubmit": /* Search results for the compatibility item submit
page */
- include("inc/comp/data/comp_app_submit_list.php");
- break;
- }
- break;
-
- }
+ default:
+ new Item_Details();
+ break;
+
+ // Screenshots
+ case 'screens':
+ new Item_Screenshots();
+ break;
+
+ // Test Reports
+ case 'tests':
+ new Item_Tests();
+ break;
+
+ // Comments
+ case 'forum':
+ new Item_Comments();
+ break;
+
+ // Known Bugs
+ case 'bugs':
+ new Item_Bugs();
+ break;
+
+ // Tips & Tricks
+ case 'tips':
+ new Item_Tips();
+ break;
+ } // end switch item2
+ break;
+ } // end switch addbox
+ break;
+
+ // Search
+ case 'search':
+ new HTML_Search();
+ break;
+
+ // Category
+ case 'submit':
+ new Submit_Item();
+ break;
+
+ // Help
+ case 'help':
+ new Help();
+ break;
+
+ default:
+ echo '404';
+ break;
+
+ // export data
+ case 'dat':
+ switch (@$_GET['export']) {
+
+ // Compatibility versions list for one item
+ case 'grpitemlst':
+ new List_Item();
+ break;
+
+ // AppGroup - Search results
+ case 'grplst':
+ new List_Group();
+ break;
+
+ // Vendor - Search results
+ case 'vdrlst':
+ new List_Vendor();
+ break;
+
+ // Search results for the compatibility item submit page
+ case 'compitemsubmit':
+ new List_AppSubmit();
+ break;
+ } // end switch export
+ break;
+} // end switch page
?>
Propchange:
branches/danny-web/www/www.reactos.org/compat/lib/om/CUser.class.php
------------------------------------------------------------------------------
svn:mergeinfo =
Modified:
branches/danny-web/www/www.reactos.org/compat/lib/view/HTML_Group.class.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/lib/view/HTML_Group.class.php
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/lib/view/HTML_Group.class.php
[iso-8859-1] Thu Apr 16 11:48:57 2009
@@ -277,7 +277,7 @@
<a name="ver"></a>
<h3>All Versions</h3>
<?php
- include("inc/comp/data/group_item_list.php");
+ new List_item();
?>
<div id="group_version_list"></div>
<br />
Modified:
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Bugs.class.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Bugs.class.php
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Bugs.class.php
[iso-8859-1] Thu Apr 16 11:48:57 2009
@@ -18,20 +18,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
+class Item_Tips extends HTML_Item
+{
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
+ protected function body()
+ {
$stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE
comp_visible = '1' AND comp_id = :comp_id ORDER BY comp_name ASC");
@@ -42,8 +34,6 @@
echo "<h2>".$result_page['comp_name'] ." [".
"ReactOS ".show_osversion($result_page['comp_osversion'])
."]</h2>";
-
- include("inc/comp/comp_item_menubar.php");
?>
<p>Bugzilla integration is still on the TODO list ... </p>
@@ -66,3 +56,8 @@
<td align="center"><font size="2"><a
href="<?php echo
$RSDB_intern_index_php."?page=".htmlspecialchars(@$_GET['page']);
?>&bug=1284"
class="Stil3">View</a></font></td>
</tr>
</table>
+<?php
+
+ } // end of member function body
+}
+?>
Modified:
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Comments.class.…
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Comments.class.…
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Comments.class.…
[iso-8859-1] Thu Apr 16 11:48:57 2009
@@ -18,20 +18,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
+class Item_Tips extends HTML_Item
+{
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
+ protected function body()
+ {
$stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE
comp_visible = '1' AND comp_id = :comp_id ORDER BY comp_name ASC");
@@ -43,8 +35,6 @@
if ($result_page['comp_id']) {
echo "<h2>".$result_page['comp_name'] ." [".
"ReactOS ".show_osversion($result_page['comp_osversion'])
."]</h2>";
-
- include("inc/comp/comp_item_menubar.php");
echo "<br />";
echo forum_bar();
@@ -67,4 +57,6 @@
break;
}
}
+ } // end of member function body
+}
?>
Modified:
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Details.class.p…
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Details.class.p…
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Details.class.p…
[iso-8859-1] Thu Apr 16 11:48:57 2009
@@ -18,20 +18,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
-
-
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
+
+class Item_Tips extends HTML_Item
+{
+
+ protected function body()
+ {
$stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE
comp_visible = '1' AND comp_id = :comp_id ORDER BY comp_name ASC");
@@ -41,8 +33,6 @@
if ($result_page['comp_id']) {
echo "<h2>".$result_page['comp_name'] ." [".
"ReactOS ".@show_osversion($result_page['comp_osversion'])
."]</h2>";
-
- include("inc/comp/comp_item_menubar.php");
$stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_groups WHERE
grpentr_id = :group_id");
$stmt->bindParam('group_id',$result_page['comp_groupid'],PDO::PARAM_STR);
@@ -682,4 +672,6 @@
<?php
}
}
-?>
+ } // end of member function body
+}
+?>
Modified:
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Screenshots.cla…
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Screenshots.cla…
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Screenshots.cla…
[iso-8859-1] Thu Apr 16 11:48:57 2009
@@ -18,20 +18,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
+class Item_Tips extends HTML_Item
+{
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
+ protected function body()
+ {
$stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE
comp_visible = '1' AND comp_id = :comp_id ORDER BY comp_name ASC");
@@ -41,8 +33,6 @@
if ($result_page['comp_id']) {
echo "<h2>".$result_page['comp_name'] ." [".
"ReactOS ".@show_osversion($result_page['comp_osversion'])
."]</h2>";
-
- include("inc/comp/comp_item_menubar.php");
@@ -131,4 +121,6 @@
echo '<p align="center"><b><a
href="'.$RSDB_intern_link_item_item2.'screens">Show all
screenshots</a></b></p>';
}
}
+ } // end of member function body
+}
?>
Modified:
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Tests.class.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Tests.class.php
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Tests.class.php
[iso-8859-1] Thu Apr 16 11:48:57 2009
@@ -18,20 +18,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
-
-
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
+
+class Item_Tips extends HTML_Item
+{
+
+ protected function body()
+ {
$stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE
comp_visible = '1' AND comp_id = :comp_id ORDER BY comp_name ASC");
@@ -43,11 +35,35 @@
if ($result_page['comp_id']) {
echo "<h2>".$result_page['comp_name'] ." [".
"ReactOS ".@show_osversion($result_page['comp_osversion'])
."]</h2>";
-
- include("inc/comp/comp_item_menubar.php");
-
- echo test_bar();
?>
+<br />
+ <form action="<?php echo $RSDB_intern_link_item_item2_forum_bar; ?>"
method="post" name="forum_bar">
+
+ <table border="0" align="center" cellpadding="0"
cellspacing="0" class="forumbar" width="500">
+ <tr>
+ <td><div align="center"> <nobr>
+
+ Threshold:
+ <select name="threshold" size="1">
+ <option value="1" <?php if ($RSDB_SET_threshold == "1") {
echo 'selected="selected"'; } ?>>1 star (<?php echo
Star::thresholdTests(0, 1, true, "testresults", "test");
?>)</option>
+ <option value="2" <?php if ($RSDB_SET_threshold == "2") {
echo 'selected="selected"'; } ?>>2 stars (<?php echo
Star::thresholdTests(0, 2, true, "testresults", "test");
?>)</option>
+ <option value="3" <?php if ($RSDB_SET_threshold == "3") {
echo 'selected="selected"'; } ?>>3 stars (<?php echo
Star::thresholdTests(0, 3, true, "testresults", "test");
?>)</option>
+ <option value="4" <?php if ($RSDB_SET_threshold == "4") {
echo 'selected="selected"'; } ?>>4 stars (<?php echo
Star::thresholdTests(0, 4, true, "testresults", "test");
?>)</option>
+ <option value="5" <?php if ($RSDB_SET_threshold == "5") {
echo 'selected="selected"'; } ?>>5 stars (<?php echo
Star::thresholdTests(0, 5, true, "testresults", "test");
?>)</option>
+ </select>
+ | </nobr><nobr>
+ <select name="order" size="1">
+ <option value="new" <?php if ($RSDB_SET_order == "new") { echo
'selected="selected"'; } ?>>Newest First</option>
+ <option value="old" <?php if ($RSDB_SET_order == "old") { echo
'selected="selected"'; } ?>>Oldest First</option>
+ </select>
+ | </nobr><nobr>Save:
+ <input name="testsave" value="1" type="checkbox"> |
</nobr><nobr>
+ <input value="Change" class="button"
type="submit">
+ </nobr></div></td>
+ </tr>
+ </table>
+
+ </form>
<p align="center">The following reports are owned by whoever posted them.
We are not responsible for them in any way. </p>
<p align="center"><a href="<?php echo
$RSDB_intern_link_submit_comp_test; ?>add"><strong>Submit Compatibility
Test Report</strong></a></p>
@@ -200,4 +216,6 @@
}
}
}
+ } // end of member function body
+}
?>
Modified:
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Tips.class.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Tips.class.php
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/lib/view/Item_Tips.class.php
[iso-8859-1] Thu Apr 16 11:48:57 2009
@@ -18,20 +18,11 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
+class Item_Tips extends HTML_Item
+{
-
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
+ protected function body()
+ {
$stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp
WHERE comp_visible = '1' AND comp_id = :comp_id ORDER BY comp_name ASC");
@@ -39,11 +30,13 @@
$stmt->execute();
$result_page = $stmt->fetch(PDO::FETCH_ASSOC);
-
- include("inc/comp/comp_item_menubar.php");
?>
<h2>Tips and Tricks</h2>
<p>[...]<br>
</p>
+<?php
+ } // end of member function body
+}
+?>
Propchange:
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Item.class.php
------------------------------------------------------------------------------
svn:mergeinfo =
Copied:
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Screenshot.cl…
(from r369,
branches/danny-web/reactos.org/htdocs/compat/nocomp/comp_item_screenshot_su…)
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/reactos.org/htdocs/compat/nocomp/comp_item_screenshot_su…
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Screenshot.cl…
[iso-8859-1] Thu Apr 16 11:48:57 2009
@@ -18,20 +18,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
+class Item_Tips extends HTML_Item
+{
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
+ protected function body()
+ {
$stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE
comp_visible = '1' AND comp_id = :comp_id ORDER BY comp_name ASC");
@@ -48,8 +40,6 @@
Message::loginRequired();
}
else {
-
- include("inc/comp/comp_item_menubar.php");
echo "<h3>Submit Screenshot</h3>";
@@ -147,4 +137,6 @@
}
}
+ } // end of member function body
+}
?>
Propchange:
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Screenshot.cl…
------------------------------------------------------------------------------
svn:mergeinfo =
Copied:
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Test.class.php (from
r369,
branches/danny-web/reactos.org/htdocs/compat/nocomp/comp_item_tests_submit.…)
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/www/www.reactos.org/c…
==============================================================================
---
branches/danny-web/reactos.org/htdocs/compat/nocomp/comp_item_tests_submit.…
[iso-8859-1] (original)
+++
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Test.class.php
[iso-8859-1] Thu Apr 16 11:48:57 2009
@@ -18,20 +18,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
-
-
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
+
+class Item_Tips extends HTML_Item
+{
+
+ protected function body()
+ {
$stmt=CDBConnection::getInstance()->prepare("SELECT * FROM rsdb_item_comp WHERE
comp_visible = '1' AND comp_id = :comp_id ORDER BY comp_name ASC") ;
@@ -253,4 +245,6 @@
}
}
+ } // end of member function body
+}
?>
Propchange:
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Test.class.php
------------------------------------------------------------------------------
svn:mergeinfo =
Propchange:
branches/danny-web/www/www.reactos.org/compat/lib/view/Submit_Version.class…
------------------------------------------------------------------------------
svn:mergeinfo =
Propchange:
branches/danny-web/www/www.reactos.org/compat/notools/
------------------------------------------------------------------------------
svn:mergeinfo =
Removed:
branches/danny-web/www/www.reactos.org/compat/notools/test_bar.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/co…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/notools/test_bar.php [iso-8859-1]
(original)
+++
branches/danny-web/www/www.reactos.org/compat/notools/test_bar.php (removed)
@@ -1,77 +1,0 @@
-<?php
- /*
- RSDB - ReactOS Support Database
- Copyright (C) 2005-2006 Klemens Friedl <frik85(a)reactos.org>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
-
-
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
-
-
-
-function test_bar() { // show the forum bar
- global $RSDB_intern_link_item_item2_forum_bar;
- global $RSDB_intern_link_item_item2_forum_msg;
- global $RSDB_SET_threshold;
- global $RSDB_SET_fstyle;
- global $RSDB_SET_order;
- global $RSDB_SET_filter;
-?>
-<br />
- <form action="<?php echo $RSDB_intern_link_item_item2_forum_bar; ?>"
method="post" name="forum_bar">
-
- <table border="0" align="center" cellpadding="0"
cellspacing="0" class="forumbar" width="500">
- <tr>
- <td><div align="center"> <nobr>
-
- Threshold:
- <select name="threshold" size="1">
- <option value="1" <?php if ($RSDB_SET_threshold == "1") {
echo 'selected="selected"'; } ?>>1 star (<?php echo
Star::thresholdTests(0, 1, true, "testresults", "test");
?>)</option>
- <option value="2" <?php if ($RSDB_SET_threshold == "2") {
echo 'selected="selected"'; } ?>>2 stars (<?php echo
Star::thresholdTests(0, 2, true, "testresults", "test");
?>)</option>
- <option value="3" <?php if ($RSDB_SET_threshold == "3") {
echo 'selected="selected"'; } ?>>3 stars (<?php echo
Star::thresholdTests(0, 3, true, "testresults", "test");
?>)</option>
- <option value="4" <?php if ($RSDB_SET_threshold == "4") {
echo 'selected="selected"'; } ?>>4 stars (<?php echo
Star::thresholdTests(0, 4, true, "testresults", "test");
?>)</option>
- <option value="5" <?php if ($RSDB_SET_threshold == "5") {
echo 'selected="selected"'; } ?>>5 stars (<?php echo
Star::thresholdTests(0, 5, true, "testresults", "test");
?>)</option>
- </select>
- | </nobr><nobr>
- <select name="order" size="1">
- <option value="new" <?php if ($RSDB_SET_order == "new") { echo
'selected="selected"'; } ?>>Newest First</option>
- <option value="old" <?php if ($RSDB_SET_order == "old") { echo
'selected="selected"'; } ?>>Oldest First</option>
- </select>
- | </nobr><nobr>Save:
- <input name="testsave" value="1" type="checkbox"> |
</nobr><nobr>
- <input value="Change" class="button"
type="submit">
- </nobr></div></td>
- </tr>
- </table>
-
- </form>
-<?php
-}
-
-?>
Removed:
branches/danny-web/www/www.reactos.org/compat/notools/user_functions.php
URL:
http://svn.reactos.org/svn/reactos/branches/danny-web/reactos.org/htdocs/co…
==============================================================================
---
branches/danny-web/www/www.reactos.org/compat/notools/user_functions.php [iso-8859-1]
(original)
+++
branches/danny-web/www/www.reactos.org/compat/notools/user_functions.php (removed)
@@ -1,61 +1,0 @@
-<?php
- /*
- RSDB - ReactOS Support Database
- Copyright (C) 2005-2006 Klemens Friedl <frik85(a)reactos.org>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-/*
- * ReactOS Support Database System - RSDB
- *
- * (c) by Klemens Friedl <frik85>
- *
- * 2005 - 2006
- */
-
-
- // To prevent hacking activity:
- if ( !defined('RSDB') )
- {
- die(" ");
- }
-
-
- $roscms_connected = 1;
-
- function usrfunc_GetUsername($RSDB_TEMP_getusrid) { // Get the user name from the RosCMS
user table
-
- require_once(ROSCMS_PATH.'lib/RosCMS_Autoloader.class.php');
- $RSDB_USER_name = Subsystem::getUserName($RSDB_TEMP_getusrid);
- if ($RSDB_USER_name !== false) {
- return $RSDB_USER_name;
- }
- return '';
- }
-
- function usrfunc_IsAdmin($RSDB_TEMP_getusrid) { // Check if the user is an developer,
admin or super admin
-
- //@IMPLEMENT Usergroup check
- return false;
- }
-
- function usrfunc_IsModerator($RSDB_TEMP_getusrid) { // Check if the user is an RSDB
Moderator
-
- //@IMPLEMENT Usergroup check
- return false;
- }
-
-?>