Location: PHPKode > projects > ADbNewsSender > ADbNewsSender_2.0.4/protected/admin/nl/NLsettings.php.inc
<?php
//Copyright (c) Florian Grannemann
//Last change in version: 2.0 Alpha 1
/*
    ******************************************************************************
    ADbNewsSender 2

    Copyright (C) 2009  Florian Grannemann (hide@address.com)
    Website: http://adbnewssender.sf.net



    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    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, see http://www.gnu.org/licenses/
    ******************************************************************************
*/

//Do not edit anything unless you realy REALY know what you are doing!




$cur_NLcof_modul=$_REQUEST["cur_NLcof_modul"];




include "$path_to_languagefolder/lang_admin_NLsettings.php.inc";

//########################################################################

print "<h2>$TXT_PageTitle</h2>";
if($MyCFG->NL_exists($_SESSION["CurrentNL"]))
{


    //to avoid remote inclusion:
    $cur_NLcof_modul=preg_replace("`^ftp://`is","",$cur_NLcof_modul);
    $cur_NLcof_modul=preg_replace("`^http://`is","",$cur_NLcof_modul);

    if(!$cur_NLcof_modul || @(!file_exists("./nl/config_modules/$cur_NLcof_modul.php.inc")))
    {
	print $modules_choise;
	print "<br>";
	$i=0;
	include "./nl/config_modules/modules_reg.php.inc";
	while ($i <count($NL_config_modules))
	{
		print "<b><a href=\"".$_SERVER["PHP_SELF"]."?cur_NLcof_modul=".$NL_config_modules[$i]."&modul=".$_SESSION["currentModulType"]."|".$_SESSION["currentModulNr"]."&SelectNL=".$_SESSION["CurrentNL"]."\">".$conf_modules_map[$NL_config_modules[$i]]["name"]."</a></b><br>";
		print $conf_modules_map[$NL_config_modules[$i]]["description"]."<br>";
		$i++;	
	}

    }
    else
    {
	print "<h3>".$conf_modules_map[$cur_NLcof_modul]["name"]."</h3>";
	include "./nl/config_modules/$cur_NLcof_modul.php.inc";
	print "<br><a href=\"".$_SERVER["PHP_SELF"]."?&modul=".$_SESSION["currentModulType"]."|".$_SESSION["currentModulNr"]."&SelectNL=".$_SESSION["CurrentNL"]."\">".$TXT_BacktoConfigMenue."</a>";
    }

}
else
{
    print $ErrorNLdoesnotExist;

}
?>
Return current item: ADbNewsSender