Author: lesabotsy
Date: Fri May 25 15:31:37 2007
New Revision: 441
URL: http://svn.gna.org/viewcvs/phplinker?rev=441&view=rev
Log: (empty)
Modified:
trunk/www/admin/includes/auth.php
trunk/www/includes/footer.php
trunk/www/index.php
Modified: trunk/www/admin/includes/auth.php
URL:
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/includes/auth.php?rev=441&r1=440&r2=441&view=diff
==============================================================================
--- trunk/www/admin/includes/auth.php (original)
+++ trunk/www/admin/includes/auth.php Fri May 25 15:31:37 2007
@@ -28,7 +28,7 @@
linker_tpl("level",$CurrentUser->group);
}else{
- header("Location: /admin/login?came_from=".$_SERVER['REQUEST_URI']);
+ header("Location: login?came_from=".$_SERVER['REQUEST_URI']);
exit;
}
?>
Modified: trunk/www/includes/footer.php
URL:
http://svn.gna.org/viewcvs/phplinker/trunk/www/includes/footer.php?rev=441&r1=440&r2=441&view=diff
==============================================================================
--- trunk/www/includes/footer.php (original)
+++ trunk/www/includes/footer.php Fri May 25 15:31:37 2007
@@ -47,7 +47,9 @@
/* END */
if(!file_exists($template_filename)){
-
$template_filename="/var/www/phplinker/smarty/".$linker_config['linker_smarty_template']."/templates/index.tpl";
+ $serv ="";
+ $serv = str_replace("/www/index.php","/smarty/",$_SERVER['SCRIPT_FILENAME']);
+ $template_filename= $serv .
$linker_config['linker_smarty_template']."/templates/index.tpl";
}
if(file_exists($template_filename)) {
linker_tpl("content","false");
Modified: trunk/www/index.php
URL:
http://svn.gna.org/viewcvs/phplinker/trunk/www/index.php?rev=441&r1=440&r2=441&view=diff
==============================================================================
--- trunk/www/index.php (original)
+++ trunk/www/index.php Fri May 25 15:31:37 2007
@@ -19,12 +19,11 @@
?>
<?php
require("includes/start.php");
+echo "http://".$_SERVER['SERVER_NAME'].$_SERVER['REDIRECT_URL'];
if(!file_exists($template_filename))
- $server_name = "http://".$_SERVER['SERVER_NAME']."/phplinker/www/";
+ $server_name = "http://".$_SERVER['SERVER_NAME'].$_SERVER['REDIRECT_URL'];
else
$server_name = "http://".$_SERVER['SERVER_NAME']."/";
-$requete = mysql_query("SELECT * FROM url LIMIT 0 , 30");
-echo mysql_num_rows($requete);
$urls='';
$categories='';
$navbars='';
@@ -95,6 +94,11 @@
$iter=($iter==1)?0:1;
}
+ $serv ="";
+ $serv = str_replace("/www/index.php","/smarty/",$_SERVER['SCRIPT_FILENAME']);
+ $menu_droite= $serv .
$linker_config['linker_smarty_template']."/templates/MenuDroit.tpl";
+
+linker_tpl("menu_droite",$menu_droite);
linker_tpl("server_name",$server_name);
linker_tpl("navbars" , $navbars);
linker_tpl("parents",$parents);
_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits