librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1290] disable group mods for database restructuring


From: Clint Adams
Subject: [Librefm-commits] [1290] disable group mods for database restructuring
Date: Fri, 08 May 2009 00:11:03 +0000

Revision: 1290
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1290
Author:   clint
Date:     2009-05-08 00:11:02 +0000 (Fri, 08 May 2009)
Log Message:
-----------
disable group mods for database restructuring

Modified Paths:
--------------
    trunk/gnukebox/install.php
    trunk/nixtape/edit_group.php

Modified: trunk/gnukebox/install.php
===================================================================
--- trunk/gnukebox/install.php  2009-05-08 00:02:32 UTC (rev 1289)
+++ trunk/gnukebox/install.php  2009-05-08 00:11:02 UTC (rev 1290)
@@ -91,7 +91,7 @@
                grouptype INTEGER)");
 
        $adodb->Execute("CREATE TABLE Group_Members (
-               groupname VARCHAR(64) REFERENCES Groups(groupname),
+               grp INTEGER REFERENCES Groups(id),
                member VARCHAR(64) REFERENCES Users(username),
                joined INTEGER NOT NULL,
                PRIMARY KEY (groupname, member))");

Modified: trunk/nixtape/edit_group.php
===================================================================
--- trunk/nixtape/edit_group.php        2009-05-08 00:02:32 UTC (rev 1289)
+++ trunk/nixtape/edit_group.php        2009-05-08 00:11:02 UTC (rev 1290)
@@ -31,6 +31,11 @@
        $smarty->assign('details', 'Not logged in! You shouldn\'t be here!');
        $smarty->display('error.tpl');
        die();
+} else {
+       $smarty->assign('error', 'Error!');
+       $smarty->assign('details', 'Group modifications are disabled 
temporarily.');
+       $smarty->display('error.tpl');
+       die();
 }
 
 if ($_REQUEST['group']=='new')





reply via email to

[Prev in Thread] Current Thread [Next in Thread]