Example #1
0
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

	require("../SiteTranslatorAdmin.php");	
	$translator = new SiteTranslatorAdmin();
?>

<html>
<body>
<?
	if (!$translator->isLoggedIn() || !$translator->isEditor())
	{
		echo "<h2>Access denied</h2>";
	}
	else
	{
	
		if ($_POST["submit"])
		{		
			if ($translator->addText($_POST["key"], $_POST["text"]))
			{
				echo "<h3>The database has been updated</h3>";
				echo "You will have to refresh the menu on the left hand side to see the changes";			
			}
			else
			{
Example #2
0
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

	require("../SiteTranslatorAdmin.php");
	$translator = new SiteTranslatorAdmin();
?>

<html>
<body>
<?
	if (!$translator->isLoggedIn())
	{
		echo "<h2>Access denied</h2>";
	}
	else
	{
	
		if ($_POST["submit"])
		{		
			if ($translator->isEditor())
			{
				if ($_POST["delete"]=="CHECKED")
				{
					$translator->deleteText($_POST["key"]);
				}
				else