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

SF.net SVN: ledger-smb: [78] trunk/bin/mozilla/admin.pl



Revision: 78
          http://svn.sourceforge.net/ledger-smb/?rev=78&view=rev
Author:   linuxpoet
Date:     2006-09-12 22:09:14 -0700 (Tue, 12 Sep 2006)

Log Message:
-----------
removed dataset update from admin.pl

Modified Paths:
--------------
    trunk/bin/mozilla/admin.pl

Modified: trunk/bin/mozilla/admin.pl
===================================================================
--- trunk/bin/mozilla/admin.pl	2006-09-13 04:35:14 UTC (rev 77)
+++ trunk/bin/mozilla/admin.pl	2006-09-13 05:09:14 UTC (rev 78)
@@ -1153,81 +1153,6 @@
 }
 
 
-sub update_dataset {
-
-	%needsupdate = User->dbneedsupdate(\%$form);
-
-	$form->{title} = "LedgerSMB ".$locale->text('Accounting')." "
-					.$locale->text('Database Administration')." / "
-					.$locale->text('Update Dataset');
-	$form->{login} = "root login";
-	$form->header;
-
-	print qq|
-	<body class="admin">
-	<center>
-	<h2>$form->{title}</h2>
-	|;
-
-	foreach $key (sort keys %needsupdate) {
-
-		if ($needsupdate{$key} ne $form->{dbversion}) {
-			$upd .= qq|<input name="db$key" class="checkbox" type="checkbox" value="1" checked /> $key\n|;
-			$form->{dbupdate} .= "db$key ";
-		}
-	}
-
-	chop $form->{dbupdate};
-
-	if ($form->{dbupdate}) {
-
-		print qq|
-		<form method="post" action="$form->{script}" />
-		<input type="hidden" name="dbdriver" value="$form->{dbdriver}" />
-		<input type="hidden" name="dbhost" value="$form->{dbhost}" />
-		<input type="hidden" name="dbport" value="$form->{dbport}" />
-		<input type="hidden" name="dbuser" value="$form->{dbuser}" />
-		<input type="hidden" name="dbpasswd" value="$form->{dbpasswd}" />
-		<input type="hidden" name="dbdefault" value="$form->{dbdefault}" />
-		<input name="dbupdate" type="hidden" value="$form->{dbupdate}" />
-		<input name="callback" type="hidden" value="$form->{script}?action=list_users&amp;path=$form->{path}&amp;sessionid=$form->{sessionid}" />
-		<input type="hidden" name="path" value="$form->{path}" />
-		<input type="hidden" name="sessionid" value="$form->{sessionid}" />
-		<input type="hidden" name="nextsub" value="dbupdate" />
-	
-		<table width="100%">
-			<tr class="listheading">
-				<th>|.$locale->text('The following Datasets need to be updated').qq|</th>
-			</tr>
-			<tr>
-				<td>
-				$upd
-				</td>
-			</tr>
-			<tr>
-				<td>
-					<hr size="3" noshade />
-					<br />
-					<input type="submit" class="submit" name="action" value="|.$locale->text('Continue').qq|" />
-				</td>
-			</tr>
-		</table>
-		</form>
-		|;
-
-	} else {
-
-		print $locale->text('DBA')." : $form->{dbuser} : " .$locale->text('All Datasets up to date!');
-	}
-
-	print qq|
-	</body>
-	</html>
-	|;
-
-}
-
-
 sub dbupdate {
 
 	User->dbupdate(\%$form);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.