Commit c7fe6ac4 authored by Antoine Tenart's avatar Antoine Tenart
Browse files

kwain

parent 67a822bc
......@@ -28,27 +28,30 @@ $site = new sas();
$site->allow_only_logged_users("sas");
if ( ereg("^(.*)/([0-9]*).jpg$",$_SERVER["argv"][0],$regs) )
$q = $_SERVER['QUERY_STRING'];
$q = htmlspecialchars ($q);
if ( ereg("^(.*)/([0-9]*).jpg$",$q,$regs) )
{
$id_photo = intval($regs[2]);
$mode = "";
}
else if ( ereg("^(.*)/([0-9]*).vignette.jpg$",$_SERVER["argv"][0],$regs) )
else if ( ereg("^(.*)/([0-9]*).vignette.jpg$",$q,$regs) )
{
$id_photo = intval($regs[2]);
$mode = "vignette";
}
else if ( ereg("^(.*)/([0-9]*).diapo.jpg$",$_SERVER["argv"][0],$regs) )
else if ( ereg("^(.*)/([0-9]*).diapo.jpg$",$q,$regs) )
{
$id_photo = intval($regs[2]);
$mode = "diapo";
}
else if ( ereg("^(.*)/([0-9]*).flv$",$_SERVER["argv"][0],$regs) )
else if ( ereg("^(.*)/([0-9]*).flv$",$q,$regs) )
{
$id_photo = intval($regs[2]);
$mode = "flv";
}
else if ( ereg("^/(.*)$",$_SERVER["argv"][0]) )
else if ( ereg("^/(.*)$",$q) )
{
$path = $_SERVER["argv"][0];
}
......
......@@ -385,13 +385,13 @@ if ( $photo->is_valid() )
elseif ( $_REQUEST["action"] == "setweekly" && $site->user->is_in_group ("moderateur_site") )
{
copy($photo->get_abs_path().$photo->id.".jpg",
"/var/www/ae/www/ae2/var/img/com/weekly_photo.jpg");
"/var/www/ae2/data/com/weekly_photo.jpg");
copy($photo->get_abs_path().$photo->id.".diapo.jpg",
"/var/www/ae/www/ae2/var/img/com/weekly_photo-diapo.jpg");
"/var/www/ae2/data/com/weekly_photo-diapo.jpg");
copy($photo->get_abs_path().$photo->id.".vignette.jpg",
"/var/www/ae/www/ae2/var/img/com/weekly_photo-small.jpg");
"/var/www/ae2/data/com/weekly_photo-small.jpg");
new update ($site->dbrw,"site_boites",
array ("contenu_boite" => $cat->nom),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment