Alexander Nicolaysen Sørnes : Add a page for updating all apps' maintainer states
Alexander Nicolaysen Sørnes
asornes at winehq.org
Thu Nov 12 03:40:07 CST 2009
Module: appdb
Branch: master
Commit: 477a0396b550d8b0f2fe9b504376c0215af44ba2
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=477a0396b550d8b0f2fe9b504376c0215af44ba2
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Thu Nov 12 10:39:34 2009 +0100
Add a page for updating all apps' maintainer states
---
updateMaintainerStates.php | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/updateMaintainerStates.php b/updateMaintainerStates.php
new file mode 100644
index 0000000..f368e00
--- /dev/null
+++ b/updateMaintainerStates.php
@@ -0,0 +1,22 @@
+<?php
+
+require_once('path.php');
+require_once('include/incl.php');
+require_once('include/maintainer.php');
+
+if($_SESSION['current']->hasPriv('admin'))
+ util_show_error_page_and_exit("Only admins are allowed in here");
+
+$hResult = application::objectGetEntries('accepted');
+
+$i = 0;
+while($oRow = mysql_fetch_object($hResult))
+{
+ $oApp = new application(null, $oRow);
+ $oApp->updateMaintainerState();
+ $i++;
+}
+
+echo "Updated $i entries";
+
+?>
More information about the wine-cvs
mailing list