1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00
marj 3420b193ab Language selection simplification
switch to include_lan for the time being

work in progress
2009-08-15 11:55:30 +00:00

74 lines
1.5 KiB
PHP

<?php
if (!defined('e107_INIT')) { exit; }
include_lan($plugindir."languages/".e_LANGUAGE."_admin_links_page.php");
if(!e_QUERY)
{
$text = LAN_ADMIN_HELP_1;
}
else
{
$qs = explode(".", e_QUERY);
if(is_numeric($qs[0]))
{
$from = array_shift($qs);
}
else
{
$from = "0";
}
//##### LINK --------------------------------------------------
//manage Link items
if($qs[0] == "link" && !isset($qs[1]) )
{
$text = LAN_ADMIN_HELP_3;
//edit
}
elseif($qs[0] == "link" && $qs[1] == "edit" && is_numeric($qs[2]) )
{
$text = LAN_ADMIN_HELP_9;
//view links in cat
}
elseif($qs[0] == "link" && $qs[1] == "view" && (is_numeric($qs[2]) || $qs[2] == "all") )
{
$text = LAN_ADMIN_HELP_8;
//create
}
elseif($qs[0] == "link" && $qs[1] == "create" && !isset($qs[2]))
{
$text = LAN_ADMIN_HELP_4;
//create/post submitted
}
elseif($qs[0] == "link" && $qs[1] == "sn" && is_numeric($qs[2]))
{
$text = LAN_ADMIN_HELP_10;
//##### SUBMITTED --------------------------------------------------
}
elseif($qs[0] == "sn" && !isset($qs[1]) )
{
$text = LAN_ADMIN_HELP_5;
//##### OPTION --------------------------------------------------
}
elseif($qs[0] == "opt" && !isset($qs[1]) )
{
$text = LAN_ADMIN_HELP_6;
//##### CATEGORY --------------------------------------------------
}
elseif($qs[0] == "cat" && $qs[1] == "create" )
{
$text = LAN_ADMIN_HELP_2;
}
elseif($qs[0] == "cat" && $qs[1] == "edit" && is_numeric($qs[2]) )
{
$text = LAN_ADMIN_HELP_7;
}
}
$ns -> tablerender(LAN_ADMIN_HELP_0, $text);
?>