Вход Регистрация
Файл: admin.php
Строк: 2206
<?php
  
/*
    ********************************************************************
    *         Название:  WebPhoto                                      *
    ********************************************************************
    *        Стоимость:  бесплатный скрипт                             *
    *       Требования:  PHP4 и выше                                   *
    *        Платформа:  любая                                         *
    *             Язык:  русский                                       *
    *            Автор:  WebProgs (http://www.webprogs.ru)             *
    *                    & Sad Raven (http://www.sad-raven.ru)         *
    ********************************************************************
    *           Создан:  11 июля 2007                                  *
    *                                                                  *
    ********************************************************************
    */
error_reporting(0);
include(
"leng.inc.php");
include (
"$yaz");
if (
file_exists("data/passwd.dat")):
     require (
"data/passwd.dat");
if (
$alogin && $pass)
{     
$alogin=mb_strtolower($alogin);
    
$alogin=md5($alogin);
    
$pass=md5($pass);
    
setcookie('webphoto'$alogin '&&&' $pass0);
}
$logined false;
if (
$alogin=='' && $_COOKIE['webphoto'])
{
        
$laaalefes $_COOKIE['webphoto'];
        
$ar_up explode('&&&'$laaalefes);
        
$alogin $ar_up[0];
        
$pass $ar_up[1];
}

if(
$alogin!='')
{
        if(
$wplogname == $alogin)
         {            if(
$wplogpass == $pass)
            {
             
$logined true;
            }
           else
            {
$error $err[9]; }
         }
         else
          {
$error $err[9]; }
}

endif;
include(
"ver.inc.php");
?>

<html>
<head>
<title>ADMIN - WebPhoto <?=$version?></title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=<?=$kodirovka_of_phpmailer;?>">
<link rel="shortcut icon"href="favicon.ico">
<style>
body
  {
  font-family: Verdana, Tahoma, Helvetica, Arial, sans-serif, "Arial Cyr"; font-size: 11px; color: #222222;
  scrollbar-face-color: #E8E8FF;
  scrollbar-highlight-color: #CCCCCC;
  scrollbar-shadow-color: #CCCCCC;
  scrollbar-3dlight-color: #CCCCCC;
  scrollbar-arrow-color: #CCCCCC;
  scrollbar-track-color: #E8E8FF;
  scrollbar-darkshadow-color: #CCCCCC
  }
.p {color: #222222; font-size: 11px; font-family: Verdana, Tahoma}
.p1 {color: #6060B0; font-size: 11px; font-family: Verdana, Tahoma}
.p2 {color: #222222; font-size: 10px; font-family: Verdana, Tahoma}
.error {color: #FFFFFF; font-size: 11px; font-weight:bold; font-family: Verdana, Tahoma}
a:link {font-size: 11px; color: #6060B0; font-weight: normal; text-decoration: none}
a:visited {font-size: 11px; color: #6060B0; font-weight: normal; text-decoration: none}
a:active {font-size: 11px; color: #6060B0; font-weight: normal; text-decoration: none}
a:hover {font-size: 11px; color: #000000; font-weight: normal; text-decoration: none}
a.a:link {font-size: 11px; color: #6060B0; font-weight: bold; text-decoration: none}
a.a:visited {font-size: 11px; color: #6060B0; font-weight: bold; text-decoration: none}
a.a:active {font-size: 11px; color: #6060B0; font-weight: bold; text-decoration: none}
a.a:hover {font-size: 11px; color: #000000; font-weight: bold; text-decoration: none}
textarea,input { font-family: Verdana, Tahoma; font-size: 11px; background: #FFFFFF; border: 1pt solid #CCCCCC; color: #222222 }
</style>
<script language=JavaScript>
<!--
function win(file,win,width,height) {window.open(file,win,"width="+width+",height="+height+",top=0,left=0,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no"); }
function win_col_tab(file,give)
{
win = window.open(file,give,"width=410, height=425, toolbar=0, location=0, status=0, menubar=0, scrollbars=0, resizable=1,left=1,top=1");
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" topmargin="10" leftmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<table width="600" border="0" cellspacing="1" cellpadding="3">
<tr><td>
<table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC"><tr><td align="center" class="p" bgcolor="#E8E8FF"><a href="admin.php"><b>WebPhoto <?=$version?></b></a></td></tr></table>
</td></tr>
<tr><td>

<?php
if (!file_exists("data/passwd.dat") && $QUERY_STRING == "" && isset($go_in_to_vxod)):
     echo 
"</td></tr><tr><td><table width=600 border=0 cellspacing=1 cellpadding=3 bgcolor=#CCCCCC><tr><td align=center  class=p bgcolor=#FFFFFF>$fprol</b></td></tr></table>";
     if (isset(
$alogin) and $alogin != "" and isset($pass) and $pass != ""):
          
$file fopen("data/passwd.dat","w");
          
fputs($file,"<?phprn$wplogname = "".md5(mb_strtolower($alogin))."";rn$wplogpass = "".md5($pass)."";rn?>");
          
fclose($file);
          echo 
"</td></tr><tr><td><table width=600 border=0 cellspacing=1 cellpadding=3 bgcolor=#CCCCCC><tr><td align=center  class=p bgcolor=#FFFFFF>$fpc</b></td></tr></table>";
          echo 
"</td></tr><tr><td><table width=600 border=0 cellspacing=1 cellpadding=3 bgcolor=#CCCCCC><tr><td align=center  class=p bgcolor=#FFFFFF><b>$fpv</b></td></tr></table>";
     else: echo 
"</td></tr><tr><td><table width=600 border=0 cellspacing=1 cellpadding=3 bgcolor=#CCCCCC><tr><td align=center  class=error bgcolor=#FF0000>$fperr</td></tr></table>";
     endif;
endif;

if (
$logined):
     include(
"config.inc.php");

     if (
$QUERY_STRING=="reg_albom"):
        if (isset(
$change) || isset($delete)):
                
$data_array file("data/album.dat");
                if (
$data_array != ""):
                        if(isset(
$change)):
                                
$new_ftalnm str_replace('\"',"&quot;",$new_ftalnm);
                                
$new_ftalnm str_replace("\'","&quot;",$new_ftalnm);
                                
$new_ftalnm str_replace(":","&#58;",$new_ftalnm);
                                
$new_ftalnm str_replace("r","",$new_ftalnm);
                                
$new_ftalnm str_replace("n","<br>",$new_ftalnm);
                                
$data_array[$id] = "$ftalnmreg::$new_ftalnm::rn";
                                if (
$album_pozition!=$id)
                                {                                 foreach (
$data_array as $i=>$string)
                                {
                                if (
$i==$album_pozition)
                                {
$data_array1[$i]=$data_array[$id];}
                                elseif (
$id>$album_pozition)
                                {
                                if (
$i<$album_pozition)
                                {
$data_array1[$i]=$data_array[$i];}
                                elseif (
$i>$id) {$data_array1[$i]=$data_array[$i];}
                                else {
$data_array1[$i]=$data_array[$i-1];}
                                }
                                elseif (
$id<$album_pozition)
                                {
                                if (
$i>$album_pozition || $i<$id)
                                {
$data_array1[$i]=$data_array[$i];}
                                else
                                {
$data_array1[$i]=$data_array[$i+1];}
                                }
                                }
                                
$write=fopen("data/album.dat","w");
                                
flock($write,2);
                                foreach (
$data_array1 as $i=>$string)
                                        {
                                        
fputs($write,"$string");
                                        }
                                
flock($write,3);
                                
fclose($write);
                                }
                                else
                                {
                                
$write=fopen("data/album.dat","w");
                                
flock($write,2);
                                foreach (
$data_array as $i=>$string)
                                        {
                                        
fputs($write,"$string");
                                        }
                                
flock($write,3);
                                
fclose($write);
                                }
                        endif;
                        if(isset(
$delete)):
                                
$data_array[$id] = "";

                                function 
del_folder ($folder_name)
                                {
                                
$dir_content scandir($folder_name);
                                unset(
$dir_content[0]);
                                unset(
$dir_content[1]);

                                foreach(
$dir_content as $value)
                                {
                                
del_folder($folder_name."/".$value);
                                
unlink ($folder_name."/".$value);
                                }
                                
rmdir($folder_name);
                                }
                                
del_folder("data/$ftalnmreg");
                                
$write=fopen("data/album.dat","w");
                                
flock($write,2);
                                foreach (
$data_array as $i=>$string)
                                        {
                                        
fputs($write,"$string");
                                        }
                                
flock($write,3);
                                
fclose($write);
                        endif;
                endif;
        endif;
        if (isset(
$add)):
                
$erorinalb=0;
                
$data_array file("data/album.dat");
                if (
$data_array != ""):
                foreach (
$data_array as $iii=>$string)
                {                 list (
$albummmss,$albummmss_name)=explode("::","$string");
                if (
$alb_url==$albummmss) {$erorinalb=1;}
                }
                                if (
$erorinalb!=1)
                                {
                                
$alb_name str_replace("<","&lt;",$alb_name);
                                
$alb_name str_replace(">","&gt;",$alb_name);
                                
$alb_name str_replace('\"',"&quot;",$alb_name);
                                
$alb_name str_replace("\'","&quot;",$alb_name);
                                
$alb_name str_replace(":","&#58;",$alb_name);
                                
$alb_name str_replace("r","",$alb_name);
                                
$alb_name str_replace("n","<br>",$alb_name);
                                
$alb_name str_replace("%","&#37;",$alb_name);
                                
$alb_name str_replace("^ +","",$alb_name);
                                
$alb_name str_replace(" +$","",$alb_name);
                                
$alb_name str_replace(" +","",$alb_name);

                                
$alb_url str_replace("<","",$alb_url);
                                
$alb_url str_replace(">","",$alb_url);
                                
$alb_url str_replace('\"',"",$alb_url);
                                
$alb_url str_replace("\'","",$alb_url);
                                
$alb_url str_replace(":","",$alb_url);
                                
$alb_url str_replace("r","",$alb_url);
                                
$alb_url str_replace("n","",$alb_url);
                                
$alb_url str_replace("%","",$alb_url);
                                
$alb_url str_replace("^ +","",$alb_url);
                                
$alb_url str_replace(" +$","",$alb_url);
                                
$alb_url str_replace(" +","",$alb_url);
                                
$alb_url str_replace("А","a",$alb_url);
                                
$alb_url str_replace("а","a",$alb_url);
                                
$alb_url str_replace("Б","b",$alb_url);
                                
$alb_url str_replace("б","b",$alb_url);
                                
$alb_url str_replace("В","v",$alb_url);
                                
$alb_url str_replace("в","v",$alb_url);
                                
$alb_url str_replace("Г","g",$alb_url);
                                
$alb_url str_replace("г","g",$alb_url);
                                
$alb_url str_replace("Д","d",$alb_url);
                                
$alb_url str_replace("д","d",$alb_url);
                                
$alb_url str_replace("Е","e",$alb_url);
                                
$alb_url str_replace("е","e",$alb_url);
                                
$alb_url str_replace("Ё","e",$alb_url);
                                
$alb_url str_replace("ё","e",$alb_url);
                                
$alb_url str_replace("Ж","j",$alb_url);
                                
$alb_url str_replace("ж","j",$alb_url);
                                
$alb_url str_replace("З","z",$alb_url);
                                
$alb_url str_replace("з","z",$alb_url);
                                
$alb_url str_replace("И","i",$alb_url);
                                
$alb_url str_replace("и","i",$alb_url);
                                
$alb_url str_replace("Й","i",$alb_url);
                                
$alb_url str_replace("й","i",$alb_url);
                                
$alb_url str_replace("К","k",$alb_url);
                                
$alb_url str_replace("к","k",$alb_url);
                                
$alb_url str_replace("Л","l",$alb_url);
                                
$alb_url str_replace("л","l",$alb_url);
                                
$alb_url str_replace("М","m",$alb_url);
                                
$alb_url str_replace("м","m",$alb_url);
                                
$alb_url str_replace("Н","n",$alb_url);
                                
$alb_url str_replace("н","n",$alb_url);
                                
$alb_url str_replace("О","o",$alb_url);
                                
$alb_url str_replace("о","o",$alb_url);
                                
$alb_url str_replace("П","p",$alb_url);
                                
$alb_url str_replace("п","p",$alb_url);
                                
$alb_url str_replace("Р","r",$alb_url);
                                
$alb_url str_replace("р","r",$alb_url);
                                
$alb_url str_replace("С","s",$alb_url);
                                
$alb_url str_replace("с","s",$alb_url);
                                
$alb_url str_replace("Т","t",$alb_url);
                                
$alb_url str_replace("т","t",$alb_url);
                                
$alb_url str_replace("У","u",$alb_url);
                                
$alb_url str_replace("у","u",$alb_url);
                                
$alb_url str_replace("Ф","f",$alb_url);
                                
$alb_url str_replace("ф","f",$alb_url);
                                
$alb_url str_replace("Х","h",$alb_url);
                                
$alb_url str_replace("х","h",$alb_url);
                                
$alb_url str_replace("Ц","c",$alb_url);
                                
$alb_url str_replace("ц","c",$alb_url);
                                
$alb_url str_replace("Ч","ch",$alb_url);
                                
$alb_url str_replace("ч","ch",$alb_url);
                                
$alb_url str_replace("Ш","sh",$alb_url);
                                
$alb_url str_replace("ш","sh",$alb_url);
                                
$alb_url str_replace("Щ","sh",$alb_url);
                                
$alb_url str_replace("щ","sh",$alb_url);
                                
$alb_url str_replace("Ъ","",$alb_url);
                                
$alb_url str_replace("ъ","",$alb_url);
                                
$alb_url str_replace("Ы","i",$alb_url);
                                
$alb_url str_replace("ы","i",$alb_url);
                                
$alb_url str_replace("Ь","",$alb_url);
                                
$alb_url str_replace("ь","",$alb_url);
                                
$alb_url str_replace("Э","e",$alb_url);
                                
$alb_url str_replace("э","e",$alb_url);
                                
$alb_url str_replace("Ю","u",$alb_url);
                                
$alb_url str_replace("ю","u",$alb_url);
                                
$alb_url str_replace("Я","ya",$alb_url);
                                
$alb_url str_replace("я","ya",$alb_url);
                                
$alb_url str_replace(" ","_",$alb_url);
                                
$alb_url str_replace("/","",$alb_url);

                                
$f fopen ("data/album.dat","a");
                                
fputs ($f,"$alb_url::$alb_name::rn");
                                
fclose ($f);
                                
mkdir("./data/$alb_url");
                                
$fl fopen ("data/$alb_url/photo.dat","w");
                                
fputs ($fl,"");
                                
fclose ($fl);
                                
$fll fopen ("data/$alb_url/make.dat","w");
                                
fputs ($fll,"");
                                
fclose ($fll);
                                if (
$module_comment==1)
                                {                                 
$fll1 fopen ("data/$alb_url/comment.dat","w");
                                
fputs ($fll1,"");
                                
fclose ($fll1);
                                }
                                }
                endif;
        endif;
     
$QUERY_STRING=="reg_albom";
     endif;

     if (
$QUERY_STRING=="login"):
        if (isset(
$add) || isset($delete)):
                
$data_array file("data/new.dat");
                if (
$data_array != ""):
                        if(isset(
$add)):
                                
$new_comment str_replace('\"',"&quot;",$new_comment);
                                
$new_comment str_replace("\'","&quot;",$new_comment);
                                
$new_comment str_replace(":","&#58;",$new_comment);
                                
$new_comment str_replace("r","",$new_comment);
                                
$new_comment str_replace("n","<br>",$new_comment);
                                
$string "$new_name::$new_comment::rn";
                                
$string1 "$new_name::0::0::0::0::0::0::::rn";
                                
copy ("data/$new_name""data/$new_album/$new_name");
                                
unlink("data/$new_name");
                                
$write=fopen("data/$new_album/photo.dat","a");
                                
flock($write,2);
                                
fputs($write,"$string");
                                
flock($write,3);
                                
fclose($write);
                                
$write1=fopen("data/$new_album/make.dat","a");
                                
flock($write1,2);
                                
fputs($write1,"$string1");
                                
flock($write1,3);
                                
fclose($write1);
                                
$data_array[$id] = "";
                                
$write=fopen("data/new.dat","w");
                                
flock($write,2);
                                foreach (
$data_array as $i=>$str)
                                        {
                                        
fputs($write,"$str");
                                        }
                                
flock($write,3);
                                
fclose($write);
                        endif;
                        if(isset(
$delete)):
                                
$data_array[$id] = "";
                                
unlink("data/$new_name");
                                
$write=fopen("data/new.dat","w");
                                
flock($write,2);
                                foreach (
$data_array as $i=>$string)
                                        {
                                        
fputs($write,"$string");
                                        }
                                
flock($write,3);
                                
fclose($write);
                        endif;
                endif;
        endif;
     
$QUERY_STRING=="login";
     endif;

     if (
ereg("^edit",$QUERY_STRING)):
        if (isset(
$change) || isset($delete)):
        
$edit=$edit+0;
        
$data_arrai file("data/album.dat");
                foreach(
$data_arrai as $i=>$string)
                        {
                        list(
$albomiii[],$alnameiii[])= explode("::","$string");
                        }
            if (
$nneeww_album==$albomiii[$edit] && $id==$new_pozition)
            {
                
$data_array file("data/$albomiii[$edit]/photo.dat");
                if (
$data_array != ""):
                        if(isset(
$change)):
                                
$new_comment str_replace('\"',"&quot;",$new_comment);
                                
$new_comment str_replace("\'","&quot;",$new_comment);
                                
$new_comment str_replace(":","&#58;",$new_comment);
                                
$new_comment str_replace("r","",$new_comment);
                                
$new_comment str_replace("n","<br>",$new_comment);
                                
$data_array[$id] = "$new_name::$new_comment::rn";
                        endif;
                        if(isset(
$delete)):
                                
$data_array[$id] = "";
                                
unlink("data/$albomiii[$edit]/$new_name");
                        
$data_array1 file ("data/$albomiii[$edit]/make.dat");
                        
$data_array1[$id] = "";
                        
$write1=fopen("data/$albomiii[$edit]/make.dat","w");
                        
flock($write1,2);
                        foreach (
$data_array1 as $i=>$string)
                                {
                                
fputs($write1,"$string");
                                }
                        
flock($write1,3);
                        
fclose($write1);
                        
$dddata_array file ("data/$albomiii[$edit]/comment.dat");
                        
$asdfname_foto155=1;
                        for (
$asdf=0;$asdf<=count($dddata_array);$asdf++)
                        {                list(
$name_foto155,$name155,$city155,$date155,$mail155,$url155,$mess155,$answer155)=explode("::"$dddata_array[$asdf]);
               if (
$name_foto155==$new_name) {$asdfname_foto155=2$ggghhhiii=$asdf; break;}
                        }
                        if (
$asdfname_foto155==2)
                        {                         
$dddata_array[$ggghhhiii]="";
                        
$write155=fopen("data/$albomiii[$edit]/comment.dat","w");
                        
flock($write155,2);
                        foreach (
$dddata_array as $i=>$string)
                                {
                                
fputs($write155,"$string");
                                }
                        
flock($write155,3);
                        
fclose($write155);
                        }
                        endif;
                        
$write=fopen("data/$albomiii[$edit]/photo.dat","w");
                        
flock($write,2);
                        foreach (
$data_array as $i=>$string)
                                {
                                
fputs($write,"$string");
                                }
                        
flock($write,3);
                        
fclose($write);
                endif;
            }
            elseif (
$nneeww_album==$albomiii[$edit] && $id!=$new_pozition)
            {
                
$data_array file("data/$albomiii[$edit]/photo.dat");
                if (
$data_array != ""):

                        foreach (
$data_array as $i=>$string)
                                {                                 if (
$i==$new_pozition)
                                {
$data_array1[$i]=$data_array[$id];}
                                elseif (
$id>$new_pozition)
                                {                                 if (
$i<$new_pozition)
                                {
$data_array1[$i]=$data_array[$i];}
                                elseif (
$i>$id) {$data_array1[$i]=$data_array[$i];}
                                else {
$data_array1[$i]=$data_array[$i-1];}
                                }
                                elseif (
$id<$new_pozition)
                                {                                 if (
$i>$new_pozition || $i<$id)
                                {
$data_array1[$i]=$data_array[$i];}
                                else
                                {
$data_array1[$i]=$data_array[$i+1];}
                                }
                                }
                        
$write1=fopen("data/$albomiii[$edit]/photo.dat","w");
                        
flock($write1,2);
                        foreach (
$data_array1 as $iii=>$string)
                                {
                                
fputs($write1,"$string");
                                }
                        
flock($write1,3);
                        
fclose($write1);

                        
$data_arrai file("data/$albomiii[$edit]/make.dat");
                        foreach (
$data_arrai as $i=>$string)
                                {
                                if (
$i==$new_pozition)
                                {
$data_arrai1[$i]=$data_arrai[$id];}
                                elseif (
$id>$new_pozition)
                                {
                                if (
$i<$new_pozition)
                                {
$data_arrai1[$i]=$data_arrai[$i];}
                                elseif (
$i>$id) {$data_arrai1[$i]=$data_arrai[$i];}
                                else {
$data_arrai1[$i]=$data_arrai[$i-1];}
                                }
                                elseif (
$id<$new_pozition)
                                {
                                if (
$i>$new_pozition || $i<$id)
                                {
$data_arrai1[$i]=$data_arrai[$i];}
                                else
                                {
$data_arrai1[$i]=$data_arrai[$i+1];}
                                }
                                }
                        
$write2=fopen("data/$albomiii[$edit]/make.dat","w");
                        
flock($write2,2);
                        foreach (
$data_arrai1 as $iii=>$string)
                                {
                                
fputs($write2,"$string");
                                }
                        
flock($write2,3);
                        
fclose($write2);
                endif;
            }
            elseif (
$nneeww_album!=$albomiii[$edit])
            {
                
$data_array file("data/$albomiii[$edit]/make.dat");

                if (
$data_array != ""):
                                
$new_comment str_replace('\"',"&quot;",$new_comment);
                                
$new_comment str_replace("\'","&quot;",$new_comment);
                                
$new_comment str_replace(":","&#58;",$new_comment);
                                
$new_comment str_replace("r","",$new_comment);
                                
$new_comment str_replace("n","<br>",$new_comment);
                                
$ghkl=$data_array[$id];
                
$data_array1 file("data/$albomiii[$edit]/photo.dat");
                
$data_array2 file("data/$albomiii[$edit]/make.dat");
                
$data_array1[$id]="";
                
$data_array2[$id]="";
                        
copy ("data/$albomiii[$edit]/$new_name""data/$nneeww_album/$new_name");
                                
unlink("data/$albomiii[$edit]/$new_name");
                                
$f fopen ("data/$nneeww_album/photo.dat","a");
                                
fputs ($f,"$new_name::$new_comment::rn");
                                
fclose ($f);
                                
$fl fopen ("data/$nneeww_album/make.dat","a");
                                
fputs ($fl,$ghkl);
                                
fclose ($fl);
                     if (
$module_comment==1)
                     {                          
$data_arrai2441 file ("data/$albomiii[$edit]/comment.dat");
                         unset(
$asdfname);
                        
$asdfname=1;
                        for (
$asdff=0;$asdff<=count($dddata_array);$asdff++)
                        {
                        list(
$name_foto155,$name155,$city155,$date155,$mail155,$url155,$mess155,$answer155)=explode("::"$data_arrai2441[$asdff]);
                        if (
$name_foto155==$new_name) {$asdfname=2$ghf=$asdff; break;}
                        }                                 
$perenos_comment=$data_arrai2441[$ghf];
                                
$data_arrai2441[$ghf]="";
                                
$fl2123 fopen ("data/$nneeww_album/comment.dat","a");
                                
fputs ($fl2123,$perenos_comment);
                                
fclose ($fl2123);
                        
$write4141=fopen("data/$albomiii[$edit]/comment.dat","w");
                        
flock($write4141,2);
                        foreach (
$data_arrai2441 as $i=>$string)
                           {
                                
fputs($write4141,"$string");
                           }
                        
flock($write4141,3);
                        
fclose($write4141);
                        unset(
$write4141);
                        unset(
$fl2123);
                        unset(
$data_arrai2441);
                        unset (
$perenos_comment);
                     }
                        
$write2=fopen("data/$albomiii[$edit]/photo.dat","w");
                        
flock($write2,2);
                        foreach (
$data_array1 as $i=>$string)
                                {
                                
fputs($write2,"$string");
                                }
                        
flock($write2,3);
                        
fclose($write2);
                        
$write3=fopen("data/$albomiii[$edit]/make.dat","w");
                        
flock($write3,2);
                        foreach (
$data_array2 as $i=>$string)
                                {
                                
fputs($write3,"$string");
                                }
                        
flock($write3,3);
                        
fclose($write3);
                endif;
            }
        endif;

                if(isset(
$add) && $upload_photo !="" && $new_comment !=""):
                        
$path str_replace("/admin.php",""$PATH_TRANSLATED);
                                
$upload_photo_name str_replace(" ","_",$upload_photo_name);
                                
$upload_photo_name str_replace("/","",$upload_photo_name);
                                
$upload_photo_name str_replace("<","",$upload_photo_name);
                                
$upload_photo_name str_replace(">","",$upload_photo_name);
                                
$upload_photo_name str_replace('\"',"",$upload_photo_name);
                                
$upload_photo_name str_replace("\'","",$upload_photo_name);
                                
$upload_photo_name str_replace(":","",$upload_photo_name);
                                
$upload_photo_name str_replace("r","",$upload_photo_name);
                                
$upload_photo_name str_replace("n","",$upload_photo_name);
                                
$upload_photo_name str_replace("%","",$upload_photo_name);
                                
$upload_photo_name str_replace("^ +","",$upload_photo_name);
                                
$upload_photo_name str_replace(" +$","",$upload_photo_name);
                                
$upload_photo_name str_replace(" +","",$upload_photo_name);
        if (!
preg_match("/^([A-z,0-9])/"$upload_photo_name))
        {
                                
$upload_photo_name str_replace("А","a",$upload_photo_name);
                                
$upload_photo_name str_replace("а","a",$upload_photo_name);
                                
$upload_photo_name str_replace("Б","b",$upload_photo_name);
                                
$upload_photo_name str_replace("б","b",$upload_photo_name);
                                
$upload_photo_name str_replace("В","v",$upload_photo_name);
                                
$upload_photo_name str_replace("в","v",$upload_photo_name);
                                
$upload_photo_name str_replace("Г","g",$upload_photo_name);
                                
$upload_photo_name str_replace("г","g",$upload_photo_name);
                                
$upload_photo_name str_replace("Д","d",$upload_photo_name);
                                
$upload_photo_name str_replace("д","d",$upload_photo_name);
                                
$upload_photo_name str_replace("Е","e",$upload_photo_name);
                                
$upload_photo_name str_replace("е","e",$upload_photo_name);
                                
$upload_photo_name str_replace("Ё","e",$upload_photo_name);
                                
$upload_photo_name str_replace("ё","e",$upload_photo_name);
                                
$upload_photo_name str_replace("Ж","j",$upload_photo_name);
                                
$upload_photo_name str_replace("ж","j",$upload_photo_name);
                                
$upload_photo_name str_replace("З","z",$upload_photo_name);
                                
$upload_photo_name str_replace("з","z",$upload_photo_name);
                                
$upload_photo_name str_replace("И","i",$upload_photo_name);
                                
$upload_photo_name str_replace("и","i",$upload_photo_name);
                                
$upload_photo_name str_replace("Й","i",$upload_photo_name);
                                
$upload_photo_name str_replace("й","i",$upload_photo_name);
                                
$upload_photo_name str_replace("К","k",$upload_photo_name);
                                
$upload_photo_name str_replace("к","k",$upload_photo_name);
                                
$upload_photo_name str_replace("Л","l",$upload_photo_name);
                                
$upload_photo_name str_replace("л","l",$upload_photo_name);
                                
$upload_photo_name str_replace("М","m",$upload_photo_name);
                                
$upload_photo_name str_replace("м","m",$upload_photo_name);
                                
$upload_photo_name str_replace("Н","n",$upload_photo_name);
                                
$upload_photo_name str_replace("н","n",$upload_photo_name);
                                
$upload_photo_name str_replace("О","o",$upload_photo_name);
                                
$upload_photo_name str_replace("о","o",$upload_photo_name);
                                
$upload_photo_name str_replace("П","p",$upload_photo_name);
                                
$upload_photo_name str_replace("п","p",$upload_photo_name);
                                
$upload_photo_name str_replace("Р","r",$upload_photo_name);
                                
$upload_photo_name str_replace("р","r",$upload_photo_name);
                                
$upload_photo_name str_replace("С","s",$upload_photo_name);
                                
$upload_photo_name str_replace("с","s",$upload_photo_name);
                                
$upload_photo_name str_replace("Т","t",$upload_photo_name);
                                
$upload_photo_name str_replace("т","t",$upload_photo_name);
                                
$upload_photo_name str_replace("У","u",$upload_photo_name);
                                
$upload_photo_name str_replace("у","u",$upload_photo_name);
                                
$upload_photo_name str_replace("Ф","f",$upload_photo_name);
                                
$upload_photo_name str_replace("ф","f",$upload_photo_name);
                                
$upload_photo_name str_replace("Х","h",$upload_photo_name);
                                
$upload_photo_name str_replace("х","h",$upload_photo_name);
                                
$upload_photo_name str_replace("Ц","c",$upload_photo_name);
                                
$upload_photo_name str_replace("ц","c",$upload_photo_name);
                                
$upload_photo_name str_replace("Ч","ch",$upload_photo_name);
                                
$upload_photo_name str_replace("ч","ch",$upload_photo_name);
                                
$upload_photo_name str_replace("Ш","sh",$upload_photo_name);
                                
$upload_photo_name str_replace("ш","sh",$upload_photo_name);
                                
$upload_photo_name str_replace("Щ","sh",$upload_photo_name);
                                
$upload_photo_name str_replace("щ","sh",$upload_photo_name);
                                
$upload_photo_name str_replace("Ъ","",$upload_photo_name);
                                
$upload_photo_name str_replace("ъ","",$upload_photo_name);
                                
$upload_photo_name str_replace("Ы","i",$upload_photo_name);
                                
$upload_photo_name str_replace("ы","i",$upload_photo_name);
                                
$upload_photo_name str_replace("Ь","",$upload_photo_name);
                                
$upload_photo_name str_replace("ь","",$upload_photo_name);
                                
$upload_photo_name str_replace("Э","e",$upload_photo_name);
                                
$upload_photo_name str_replace("э","e",$upload_photo_name);
                                
$upload_photo_name str_replace("Ю","u",$upload_photo_name);
                                
$upload_photo_name str_replace("ю","u",$upload_photo_name);
                                
$upload_photo_name str_replace("Я","ya",$upload_photo_name);
                                
$upload_photo_name str_replace("я","ya",$upload_photo_name);
                                }
                        
copy ($upload_photo"data/$new_albom_vib/$upload_photo_name");
                        if (
$module_add_text==1) { echo "<img border=0 width=0 hight=0 src="editor/addtext.php?fn_add_text=../data/$new_albom_vib/$upload_photo_name">"; }
                        
$new_comment str_replace('\"',"&quot;",$new_comment);
                        
$new_comment str_replace("\'","&quot;",$new_comment);
                        
$new_comment str_replace(":","&#58;",$new_comment);
                        
$new_comment str_replace("r","",$new_comment);
                        
$new_comment str_replace("n","<br>",$new_comment);
                        if(
is_file("data/$new_albom_vib/photo.dat") && is_writable("data/$new_albom_vib/photo.dat")):
                                
$write=fopen("data/$new_albom_vib/photo.dat","a");
                                
flock($write,2);
                                
fputs($write,"$upload_photo_name::$new_comment::rn");
                                
flock($write,3);
                                
fclose($write);
                                
$string1 "$upload_photo_name::0::0::0::0::0::0::::rn";
                                
$write1=fopen("data/$new_albom_vib/make.dat","a");
                                
flock($write1,2);
                                
fputs($write1,"$string1");
                                
flock($write1,3);
                                
fclose($write1);
                        endif;
                endif;
     
ereg("^edit",$QUERY_STRING);
     endif;

     if (
$QUERY_STRING=="options"):
          if(isset(
$change_opt)):
               
$max_size_=$max_size1_*$max_size2_;
               
$upconfig="<?phprn";
               
$upconfig.="$index_page="$index_page";rn";
               
$upconfig.="$data_file="$data_file";rn";
               
$upconfig.="$size_fotoalbum="$size_fotoalbum";rn";
               
$upconfig.="$title="$title_";rn";
               
$upconfig.="$BACKGROUND="$BACKGROUND_";rn";
               
$upconfig.="$BORDER="$BORDER_";rn";
               
$upconfig.="$DARK="$DARK_";rn";
               
$upconfig.="$LIGHT="$LIGHT_";rn";
               
$upconfig.="$max_size="$max_size_";rn";
               
$upconfig.="$max_width="$max_width_";rn";
               
$upconfig.="$max_height="$max_height_";rn";
               
$upconfig.="$slideshow_onoff="$slideshow_onoff_";rn";
               
$upconfig.="$slideshowspeed="$slideshowspeed_";rn";
               
$upconfig.="$stats_of_photo_onoff="$stats_of_photo_onoff_";rn";
               
$upconfig.="$imgzvon="$imgzvon_";rn";
               
$upconfig.="$imgzvoff="$imgzvoff_";rn";
               
$upconfig.="$img="$img_";rn";
               
$upconfig.="$imgr="$imgr_";rn";
               
$upconfig.="$imgl="$imgl_";rn";
               
$upconfig.="$module_comment="$module_comment_";rn";
               
$upconfig.="$module_editor="$module_editor_";rn";
               
$upconfig.="$module_add_text="$module_add_text_";rn";
               
$upconfig.="$udrl_foto="$udrl_foto_";rn";
               
$upconfig.="$label="$label_";rn";
               
$upconfig.="$font_facettf="$font_facettf_";rn";
               
$upconfig.="$size="$size_";rn";
               
$upconfig.="$rgb_color="$rgb_color_";rn";
               
$upconfig.="$reflection_and_poster="$reflection_and_poster_";rn";
               
$upconfig.="$add_foto_protect="$add_foto_protect_";rn";
               
$upconfig.="$kolvo_foto_protect="$kolvo_foto_protect_";rn";
               
$upconfig.="$font_size_foto_protect="$font_size_foto_protect_";rn";
               
$upconfig.="$font_color_foto_protect="$font_color_foto_protect_";rn";
               
$upconfig.="$end="$end_";rn";
               
$upconfig.="$endsrc="$endsrc_";rn";
               
$upconfig.="$endnm="$endnm_";rn";
               
$upconfig.="?>";
               if(
is_file("config.inc.php") && is_writable("config.inc.php")):
                    
$write=fopen("config.inc.php","w");
                    
flock($write,2);
                    
fputs($write,$upconfig);
                    
flock($write,3);
                    
fclose($write);
               endif;
           endif;
          if(isset(
$change_opt_lang)):
               
$upconfig="<?phprn";
               
$upconfig.="$yaz="$new_yaz";rn";
            for (
$bbf=0;$bbf<count($vyaz);$bbf++)
             {
             
$upconfig.="$vyaz[$bbf]="$vyaz[$bbf]";rn";
             
$upconfig.="$nyaz[$bbf]="$nyaz[$bbf]";rn";
             }
               
$upconfig.="?>";
               if(
is_file("leng.inc.php") && is_writable("leng.inc.php")):
                    
$write=fopen("leng.inc.php","w");
                    
flock($write,2);
                    
fputs($write,$upconfig);
                    
flock($write,3);
                    
fclose($write);
               endif;
           endif;
     
$QUERY_STRING=="options";
     endif;

     echo 
"</td></tr><tr><td>";
     echo 
"<table width="600" border="0" cellspacing="0" cellpadding="0"><tr>";
           echo 
"<td><table border="0" cellspacing="1" width="147" cellpadding="2" bgcolor="#CCCCCC"><tr><td class="p" bgcolor="#FFFFFF" align="center" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';"><a href="admin.php?login" class="a">$mnewf</a></td></tr></table></td>";
           
echo "<td><table border="0" cellpadding="0" width="4"><tr><td width="4"></td></tr></table></td>";
           echo 
"<td><table border="0" cellspacing="1" width="147" cellpadding="2" bgcolor="#CCCCCC"><tr><td class="p" bgcolor="#FFFFFF" align="center" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';"><a href="admin.php?edit" class="a">$mred</a></td></tr></table></td>";
           
echo "<td><table border="0" cellpadding="0" width="4"><tr><td width="4"></td></tr></table></td>";
           echo 
"<td><table border="0" cellspacing="1" width="147" cellpadding="2" bgcolor="#CCCCCC"><tr><td class="p" bgcolor="#FFFFFF" align="center" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';"><a href="admin.php?options" class="a">$mset</a></td></tr></table></td>";
           
echo "<td><table border="0" cellpadding="0" width="4><tr><td width="4"></td></tr></table></td>";
           echo "
<td><table border="0" cellspacing="1" width="147" cellpadding="2" bgcolor="#CCCCCC"><tr><td class="p" bgcolor="#FFFFFF" align="center" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';"><a href="admin.php?about" class="a">$mdow</a></td></tr></table></td>";
     echo "
</tr></table>";

     if (ereg("
^redfot",$QUERY_STRING)):
          echo "
</td></tr><tr><td><table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">";
          echo "
<tr><td class="p" bgcolor="#E8E8FF" align="center"><b>$edred</b></td></tr>";
          echo "
<tr><td class="p" bgcolor="#FFFFFF" align="center"><br>";
     include ("
editor/edit.php");
          echo "
</td></tr></table>";
     ereg("
^redfot",$QUERY_STRING);
     endif;

     if (
$QUERY_STRING == ""):
          echo "
</td></tr><tr><td><table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">";
          echo "
<tr><td class="p" bgcolor="#E8E8FF" align="center"><b>$main_index[0]</b></td></tr>";
          echo "
<tr><td class="p" bgcolor="#FFFFFF" align="center">";
          echo "
$main_index[1]";
          echo "
<table border=0>";

          echo "
<tr><td class="p" align=right>$main_index[3] <u>config.inc.php</u>:&nbsp;</td><td class="p">";
          if(is_writable("
./config.inc.php")){ echo "<font color=green>$leng_editor[19]</font>"; }
              else{ echo "
<font color=red>$leng_editor[20]</font>"; }
          echo "
</td></tr>";

          echo "
<tr><td class="p" align=right>$main_index[3] <u>leng.inc.php</u>:&nbsp;</td><td class="p">";
          if(is_writable("
./leng.inc.php")){ echo "<font color=green>$leng_editor[19]</font>"; }
              else{ echo "
<font color=red>$leng_editor[20]</font>"; }
          echo "
</td></tr>";

          echo "
<tr><td class="p" align=right>$main_index[3] <u>./comment/config.inc.php</u>:&nbsp;</td><td class="p">";
          if(is_writable("
./comment/config.inc.php")){ echo "<font color=green>$leng_editor[19]</font>"; }
              else{ echo "
<font color=red>$leng_editor[20]</font>"; }
          echo "
</td></tr>";

          echo "
<tr><td class="p" align=right>$main_index[2]:&nbsp;</td><td class="p">";
          if(is_writable("
./data")){ echo "<font color=green>$leng_editor[19]</font>"; }
              else{ echo "
<font color=red>$leng_editor[20]</font>"; }
          echo "
</td></tr>";

          echo "
<tr><td class="p" align=right>$main_index[3] <u>album.dat</u>:&nbsp;</td><td class="p">";
          if(is_writable("
./data/album.dat")){ echo "<font color=green>$leng_editor[19]</font>"; }
              else{ echo "
<font color=red>$leng_editor[20]</font>"; }
          echo "
</td></tr>";

          echo "
<tr><td class="p" align=right>$main_index[3] <u>new.dat</u>:&nbsp;</td><td class="p">";
          if(is_writable("
./data/new.dat")){ echo "<font color=green>$leng_editor[19]</font>"; }
              else{ echo "
<font color=red>$leng_editor[20]</font>"; }
          echo "
</td></tr>";

          echo "
</table>";

          "
<u>new.dat</u> <b>777</b>.";
          echo "
$main_index[4]";
          echo "
</td></tr></table>";
     endif;

     if (
$QUERY_STRING == "reg_albom"):
          echo "
</td></tr><tr><td><table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">";
          echo "
<tr><td class="p" bgcolor="#E8E8FF" align="center"><b>$edredal</b></td></tr>";
          echo "
<tr><td class="p" bgcolor="#FFFFFF" align="center">";
          if (isset(
$change))
          {
          echo "
<br><br><br>$edregalbsave<br><Br><br>&nbsp;";
          }
          elseif (isset(
$delete))
          {           echo "
<br><br><br>$edregalbdel<br><br><br>&nbsp;";
          }
          elseif (isset(
$add))
          {           if (
$erorinalb!=1)
          {           echo "
<br><br><br>$edregalbadd<br><br><br>&nbsp;";
          }
          else
          {           echo "
<br><br><br><font color=red>$error_make[4]</font><br><li>$edregalbadderor <br><br><br>&nbsp;";
          }
          }
          echo "
</td></tr></table>";
     endif;

     if (
$QUERY_STRING == "login"):
          echo "
</td></tr><tr><td><table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">";
          echo "
<tr><td class="p" bgcolor="#E8E8FF" align="center"><b>$lognewf</b></td></tr>";
          echo "
<tr><td class="p" bgcolor="#FFFFFF" align="center">";
          
$pht = file("data/new.dat");
          if (count(
$pht) != 0):
          echo "
<table width="590" border="0" cellspacing="0" cellpadding="5">";
                foreach (
$pht as $i=>$string)
                        {
                        list(
$name,$comment,$album)= explode("::","$string");
                        
$wh = getimagesize("data/$name");
                        
$w = $wh[0]/4;
                        
$h = $wh[1]/4;
                        
$w100 = $wh[0] + 20;
                        
$h100 = $wh[1] + 25;
                        echo "
<form action="admin.php?login" method="POST">";
                        echo "
<input type="hidden" name="new_name" value="$name">";
                        echo "
<input name="id" type="hidden" value="$i">";
                        echo "
<tr><td bgcolor="#FFFFFF" align="right" valign="top" class="p">";
                        echo "
<table border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">";
                        echo "
<tr><td class="p" width="145" height="145" align="center" valign="center" bgcolor="#FFFFFF" style="cursor:hand;" onclick="javascript:win('data/$name','win$i',$w100,$h100);" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">";
                        echo "
<img src="data/miniphoto.php?fn=$name&w=140" alt="$logzoom 100%" border="0">";
                        echo "
</td></tr>";
                        echo "
</table>";
                        echo "
</td>";
                        echo "
<td bgcolor="#FFFFFF" align="center" class="p">";
                        echo "
<table border="0" cellspacing="0" cellpadding="0">";
                        echo "
<tr><td><select size="1" name="new_album">";
                        
$al_f = file("data/album.dat");
                        foreach (
$al_f as $i=>$string)
                        {
                        list(
$albums,$albums_names)= explode("::","$string");
                        if (
$albums==$album) {echo "<option value="$albumsselected>$albums_names</option>";}
                        else {echo "
<option value="$albums">$albums_names</option>";}
                        }
                        echo "
</select>";
                        if (
$module_editor==1)
                        {
                        echo "
<br><a href="?redfot=data/$name">$printeditphoto</a><br><br>";
                        }
                        echo "
<tr><td><textarea style="p" name="new_comment" style="width:425px;height:120px;">$comment</textarea><br>";
                        echo "
<tr><td heigh="5"><table heigh="5"><tr><td heigh="5"></td></tr></table></td></tr>";
                        echo "
<tr><td><input type="submit" name="add" value="$logaddstyle="color:#000000;width:100px;cursor:hand;" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">&nbsp;&nbsp;";
                        echo "
<input type="submit" onclick="a=confirm('$del_this_fot'); if(a==0) return false;" name="delete" value="$logdelstyle="color:#CC0000;width:100px;cursor:hand;" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">";
                        echo "
</td></tr></form>";
                        echo "
</table></td></tr>";
                        }
                        echo "
</table></table>";
          else:
                echo "
<table width="590" border="0" cellspacing="4" cellpadding="1" bgcolor="#FFFFFF"><tr><td align="center" valign="middle" class="p"><br><br>$lognet<br><br><br></td></tr></table></td></tr></table>";
          endif;
     endif;

     if (ereg("
^edit",$QUERY_STRING)):
        echo "
</td></tr><tr><td>";
        echo "
<table width="600" border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC">";
        echo "
<tr><td colspan="2" align="center" bgcolor="#E8E8FF" class="p"><b>$edredal</b></td></tr>";
        echo "
<tr><td bgcolor="#FFFFFF" align="center" class="p">";
        
$edit=$edit+0;
        
$data_arrai = file("data/album.dat");
                foreach(
$data_arrai as $i=>$string)
                        {
                        list(
$albom[],$alname[])= explode("::","$string");
                        }

                    if(isset (
$albom))
                    {                 echo "
$ed_vifa";
        ?>
                    <SELECT size="
1" NAME="album" ONCHANGE="top.location.href this.options[this.selectedIndex].value">
                      <?php
                  for (
$hhh=0;$hhh<count($albom);$hhh++)
                  { if (
$hhh==$edit)
                    {
                      echo "
<option value="?edit=$hhhselected>$alname[$hhh]</option>";
                      
$ftalnmdreg1=$albom[$hhh];
                      
$ftalnmdreg2=$alname[$hhh];
                      
$jkl=$hhh;
                      }
                      else
                      {
                      echo "
<option value="?edit=$hhh">$alname[$hhh]</option>";
                      }
                  }
                      ?></select>
        <br><br><i><?=
$edredalsel;?></i><br>
        <form name="
reg_albom_re" action="admin.php?reg_albom" method="post">
        <input name="
ftalnmreg" type="hidden" value="<?=$ftalnmdreg1;?>">
        <input name="id" type="hidden" value="<?=$jkl;?>">
        <table width=100% border="0">
        <tr><td width=50% class="p" align="center">
        <?=$edredalname;?></td><td width=50% class="p"><input name="new_ftalnm" type="text" value="<?=$ftalnmdreg2;?>"></td></tr>
        <tr><td class="p" align="center"><?=$edregpozit;?>:</td>
        <td class="p">
        <SELECT size="1" NAME="album_pozition">
                      <?php
                  
for ($hhh=0;$hhh<count($albom);$hhh++)
                  { 
$ahjdahwd=$hhh+1;
                    if (
$hhh==$edit)
                    {
                      echo 
"<option value="$hhh" selected>&nbsp;$ahjdahwd&nbsp;</option>";
                      }
                      else
                      {
                      echo 
"<option value="$hhh">&nbsp;$ahjdahwd&nbsp;</option>";
                      }
                  }
                      
?></select></td></tr></table><br>
        <input type="submit" name="change" value="<?=$edchange;?>" style="color:#000000;width:100px;cursor:hand;" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">
       <input type="submit" onclick="a=confirm('<?=$del_this_alb;?>'); if(a==0) return false;" name="delete" value="<?=$logdel;?>" style="color:#CC0000;width:100px;cursor:hand;" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">
        </form>
        <?php
        
}
        
?>
        <br><i><?=$ed_add;?>:</i>
        <form name="add_albom_add" action="admin.php?reg_albom" method="post">
<table width=100% border=0><tr><td width=50% align=center class="p"><?=$ed_tit1;?>: </td><td  class="p"><input name="alb_url" type="text" value=""></td></tr>
<tr><td align=center class="p"><?=$ed_tit2;?>:</td><td class="p"><input name="alb_name" type="text" value=""></td></tr></table>
<input type="submit" name="add" value="<?=$logadd;?>" style="color:#000000;width:100px;cursor:hand;" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">
</form><br>
        <?php
        
echo"</td></tr></table>";

        echo 
"</td></tr><tr><td>";
        if (isset (
$albom))
        {
        echo 
"<table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">";
        
echo "<tr><td colspan="2" align="center" bgcolor="#E8E8FF" class="p"><b>$edred</b></td></tr>";
        
echo "<tr><td bgcolor="#FFFFFF"><table border="0" cellspacing="0" cellpadding="5">";
        
$data_array file("data/$albom[$edit]/photo.dat");
        if (
count($data_array) != 0):
                foreach (
$data_array as $i=>$string)
                        {
                        list(
$name,$comment)= explode("::","$string");
                        
$wh getimagesize("data/$albom[$edit]/$name");
                        
$w $wh[0]/4;
                        
$h $wh[1]/4;
                        
$w100 $wh[0] + 20;
                        
$h100 $wh[1] + 25;
                        echo 
"<form action="admin.php?edit=$edit" method="POST">";
                        echo 
"<input type="hidden" name="new_name" value="$name">";
                        echo 
"<input name="id" type="hidden" value="$i">";
                        echo 
"<tr><td bgcolor="#FFFFFF" align="right" valign="top" class="p">";
                        
echo "<table border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">";
                        
echo "<tr><td class="p" width="145" height="145" align="center" valign="center" bgcolor="#FFFFFF" style="cursor:hand;" onclick="javascript:win('data/$albom[$edit]/$name','win$i',$w100,$h100);" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">";
                        
echo "<img src="data/miniphoto.php?fn=$albom[$edit]/$name&w=140" alt="$logzoom 100%" border="0">";
                        echo 
"</td></tr>";
                        echo 
"</table>";
                        echo 
"</td>";
                        echo 
"<td bgcolor="#FFFFFF" align="center" class="p">";
                        
echo "<table border="0" cellspacing="0" cellpadding="0">";
                        echo 
"<tr><td class="p">"?>
                 <?=$edregpozit;?>
                        <SELECT size="1" NAME="new_pozition">
                      <?php
                  
foreach ($data_array as $jjj=>$string)
                  { 
$kkk=$jjj+1;
                    if (
$jjj==$i)
                    {
                      echo 
"<option value="$jjj" selected>&nbsp;$kkk&nbsp;</option>";
                      }
                      else
                      {
                      echo 
"<option value="$jjj">&nbsp;$kkk&nbsp;</option>";
                      }
                  }
                      
?></select>
                 &nbsp;&nbsp;<?=$edregperemest;?> <SELECT size="1" NAME="nneeww_album">
                      <?php
                  
for ($hhh=0;$hhh<count($albom);$hhh++)
                  { if (
$hhh==$edit)
                    {
                      echo 
"<option value="$albom[$hhh]" selected>$alname[$hhh]</option>";
                      }
                      else
                      {
                      echo 
"<option value="$albom[$hhh]">$alname[$hhh]</option>";
                      }
                  }
                      
?></select><? if ($module_comment==1) { echo '<br><a href=?ftalb_com='.$edit.'&foto_com='.$name.'>'.$red_comment.'</a>'; }
                      if (
$module_editor==1) { echo "<br><a href="?redfot=data/$albom[$edit]/$name">$printeditphoto</a>"; }
                      
?>

                      <br><br>
                      <?php
                        
echo "<tr><td><textarea class="p" name="new_comment" style="width:425px;height:87px;">$comment</textarea><br>";
                        echo 
"<tr><td heigh="5"><table heigh="5"><tr><td heigh="5"></td></tr></table></td></tr>";
                        echo 
"<tr><td class="p"><input type="submit" name="change" value="$edchange" style="color:#000000;width:100px;cursor:hand;" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">&nbsp;&nbsp;";
                        
echo "<input type="submit"  onclick="a=confirm('$del_this_fot'); if(a==0) return false;" name="delete" value="$logdel" style="color:#CC0000;width:100px;cursor:hand;" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">&nbsp;&nbsp;<font color="#999999"></font>";
                        
echo "</td></tr></form>";
                        echo 
"</table></td></tr>";
                        }
        else:
                echo 
"<table width="590" border="0" cellspacing="5" cellpadding="1" bgcolor="#FFFFFF"><tr><td align="center" valign="middle" class="p"><br><br>$pusto<br><br><br></td></tr></table>";
        
endif;
        echo 
"</table></td></tr></table>";

        echo 
"</td></tr><tr><td>";
        echo 
"<table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">";
        
echo "<tr><td align="center" bgcolor="#E8E8FF" class="p"><b>$addfoto</b></td></tr>";
        
echo "<tr><td bgcolor="#FFFFFF">";
        
echo "<table width="590" border="0" cellspacing="5" cellpadding="1" bgcolor="#FFFFFF">";
        
echo "<form enctype="multipart/form-data" action="admin.php?edit=$edit" method="POST">";
        echo 
"<tr><td align="right" class="p">$ffott</td>";
        echo 
"<td><input style="p" type="file" name="upload_photo" style="width:490px;">";
        echo 
"<tr><td align="right" class="p">$falbum</td>";
        echo 
"<td><SELECT size="1" NAME="new_albom_vib">";
                  for (
$hhh=0;$hhh<count($albom);$hhh++)
                  { if (
$hhh==$edit)
                    {
                      echo 
"<option value="$albom[$hhh]" selected>$alname[$hhh]</option>";
                      }
                      else
                      {
                      echo 
"<option value="$albom[$hhh]">$alname[$hhh]</option>";
                      }
                  }
        echo 
"</select>";
        echo 
"<tr><td align="right" valign="top" class="p">$komm</td>";
        echo 
"<td><textarea style="p" name="new_comment" style="width:490px" rows="5"></textarea></td></tr>";
        echo 
"<tr><td colspan="2" align="center" class="p"><input type="submit" name="add" value="$logadd" style="color:#000000;width:100px;cursor:hand;" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';">";
        
echo "</td></tr></form>";
        echo 
"</table>";
        echo 
"</td></tr></table>";
        }
     endif;

     if (
$QUERY_STRING=="options"):
       echo 
"</td></tr><tr><td><table border=0 cellpadding=3 cellspacing=1 width=600 bgcolor=#CCCCCC class=p>";
       echo 
"<tr><td align=center bgcolor=#E8E8FF><b>$opnas</b></td></tr>";
          include(
"leng.inc.php");
          echo 
"<tr><td bgcolor=#FFFFFF align=center><form action=admin.php?options method=post>";
          echo 
"<table width=590 cellspacing=5 cellpadding=1 border=0 class=p>";
          echo 
"<tr><td align=left width=427>$optconf[0]</td><td width=100><select size="1" name="new_yaz">";
          for (
$bbf=0;$bbf<count($vyaz);$bbf++)
          {           if (
$yaz==$vyaz[$bbf])
          { echo 
"<option selected value="$vyaz[$bbf]">$nyaz[$bbf]</option>"; }
          else { echo 
"<option value="$vyaz[$bbf]">$nyaz[$bbf]</option>"; }
          }
          echo 
"</select></td></tr>";
          echo 
"<tr><td colspan=2 align=center><input type=submit style="color:#000000;width: 200px;cursor:hand;" name=change_opt_lang value="$opsave" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';"><br><font color="#999999"></font></td></tr>";
          
echo "</form></table>";
          include(
"config.inc.php");
          echo 
"<tr><td bgcolor=#FFFFFF align=center><form action=admin.php?options method=post>";
          echo 
"<table width=590 cellspacing=5 cellpadding=1 border=0 class=p>";
          echo 
"<tr><td align=left width=427>$optconf[1]</td><td width=100><input class=p name="title_" type=text value="$title"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[2]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:win_col_tab('editor/table_color.php?id_win=bg1','win1');">$optconf[36]</a></td><td width=100><input id="bg1" class=p style="background$BACKGROUND;" name=BACKGROUND_ type=text value="$BACKGROUND"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[3]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:win_col_tab('editor/table_color.php?id_win=bg2','win1');">$optconf[36]</a></td><td width=100><input id="bg2" class=p style="background$BORDER;" name=BORDER_ type=text value="$BORDER"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[4]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:win_col_tab('editor/table_color.php?id_win=bg3','win1');">$optconf[36]</a></td><td width=100><input id="bg3" class=p style="background$DARK;" name=DARK_ type=text value="$DARK"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[5]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:win_col_tab('editor/table_color.php?id_win=bg4','win1');">$optconf[36]</a></td><td width=100><input id="bg4" class=p style="background$LIGHT;" name=LIGHT_ type=text value="$LIGHT"></td></tr>";
          if (
$max_size<1024)
          {           
$max_sizezz=$max_size;
          
$trmp_max_size="<option value="1" selected>$optconf[20]</option><option value="1024">$optconf[21]$optconf[20]</option><option value="1048576">$optconf[22]$optconf[20]</option>";
          }
          elseif (
$max_size<1048576)
          {           
$max_sizezz=$max_size/1024;
          
$trmp_max_size="<option value="1">$optconf[20]</option><option value="1024" selected>$optconf[21]$optconf[20]</option><option value="1048576">$optconf[22]$optconf[20]</option>";
          }
          else
          {           
$max_sizezz=$max_size/1048576;
          
$trmp_max_size="<option value="1">$optconf[20]</option><option value="1024">$optconf[21]$optconf[20]</option><option value="1048576" selected>$optconf[22]$optconf[20]</option>";
          }
          echo 
"<tr><td align=left width=427>$optconf[6]</td><td width=100><input class=p size=7 name=max_size1_ type=text value="$max_sizezz">&nbsp;";
          echo 
"<select size="1" name="max_size2_">".$trmp_max_size;
          echo 
"</select></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[7]</td><td width=100><input class=p name=max_width_ type=text value="$max_width"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[8]</td><td width=100><input class=p name=max_height_ type=text value="$max_height"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[23]</td><td width=100><select size="1" name="slideshow_onoff_">";
          if (
$slideshow_onoff=="1") { echo "<option value="1" selected>$opton</option><option value="0">$optoff</option>"; }
          else { echo 
"<option value="1">$opton</option><option value="0" selected>$optoff</option>"; }
          echo 
"</select></td></tr>";
          if (
$slideshow_onoff=="1") {
          echo 
"<tr><td align=left width=427>$optconf[18]</td><td width=100><input class=p name=slideshowspeed_ type=text value="$slideshowspeed"></td></tr>";
          }
          else
          {           echo 
"<input name=slideshowspeed_ type=hidden value="$slideshowspeed">";
          }
          echo 
"<tr><td align=left width=427>$optconf[24]</td><td width=100><select size="1" name="stats_of_photo_onoff_">";
          if (
$stats_of_photo_onoff=="1") { echo "<option value="1" selected>$opton</option><option value="0">$optoff</option>"; }
          else { echo 
"<option value="1">$opton</option><option value="0" selected>$optoff</option>"; }
          echo 
"</select></td></tr>";
          if (
$stats_of_photo_onoff=="1") {
          echo 
"<tr><td align=left width=427>$optconf[16]</td><td width=100><input class=p name=imgzvon_ type=text value="$imgzvon"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[17]</td><td width=100><input class=p name=imgzvoff_ type=text value="$imgzvoff"></td></tr>";
          }
          else
          {           echo 
"<input name=imgzvon_ type=hidden value=$imgzvon><input name=imgzvoff_ type=hidden value="$imgzvoff">";
          }
          echo 
"<tr><td align=left width=427>$optconf[9]</td><td width=100><select size="1" name=img_>";
if (
$img==0) {echo"<option value="1">$opton</option><option selected value="0">$optoff</option>";} else {echo"<option selected value="1">$opton</option><option value="0">$optoff</option>";}
          echo
"</select></td></tr>";
if (
$img==1)
          {
          echo 
"<tr><td align=left width=427>$optconf[10]</td><td width=100><input class=p name=imgr_ type=text value="$imgr"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[11]</td><td width=100><input class=p name=imgl_ type=text value="$imgl"></td></tr>";
          }
else
          {           echo 
"<input name="imgr_" type="hidden" value="$imgr"><input name="imgl_" type="hidden" value="$imgl">";
          }
          echo 
"<tr><td align=left width=427>$optconf[13]</td><td width=100><select size="1" name=end_>";
if (
$end==0) {echo"<option value="1">$opton</option><option selected value="0">$optoff</option>";} else {echo"<option selected value="1">$opton</option><option value="0">$optoff</option>";}
          echo 
"</select></td></tr>";
if (
$end==1)
{           echo 
"<tr><td align=left width=427>$optconf[14]</td><td width=100><input class=p name=endsrc_ type=text value="$endsrc"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[15]</td><td width=100><input class=p name=endnm_ type=text value="$endnm"></td></tr>";
}
else
{ echo 
"<input name=endsrc_ type=hidden value=$endsrc><input name=endnm_ type=hidden value=$endnm>";
}
echo 
"<tr><td align=left width=427>$optconf[25]</td><td width=100><select size="1" name=module_editor_>";
if (
$module_editor==1)
{ echo
"<option selected value="1">$opton</option><option value="0">$optoff</option>";} else {echo"<option value="1">$opton</option><option selected value="0">$optoff</option>";
}
echo
"</select></td></tr>";
echo 
"<tr><td align=left width=427>$optconf[26]</td><td width=100><select size="1" name=module_add_text_>";
if (
$module_add_text==1)
{
echo
"<option selected value="1">$opton</option><option value="0">$optoff</option>";} else {echo"<option value="1">$opton</option><option selected value="0">$optoff</option>";
}
echo
"</select></td></tr>";
if (
$module_add_text==1)
{
          echo 
"<tr><td align=left width=427>$optconf[27]</td><td width=100><select size="1" name=udrl_foto_>";
          if (
$udrl_foto=="ul")
          {           echo 
"<option selected value="ul">$optconf[28]</option><option value="ur">$optconf[29]</option>";
          echo 
"<option value="dl">$optconf[30]</option><option value="dr">$optconf[31]</option>";
          }
          elseif (
$udrl_foto=="ur")
          {
          echo 
"<option value="ul">$optconf[28]</option><option selected value="ur">$optconf[29]</option>";
          echo 
"<option value="dl">$optconf[30]</option><option value="dr">$optconf[31]</option>";
          }
          elseif (
$udrl_foto=="dl")
          {
          echo 
"<option value="ul">$optconf[28]</option><option value="ur">$optconf[29]</option>";
          echo 
"<option selected value="dl">$optconf[30]</option><option value="dr">$optconf[31]</option>";
          }
          elseif (
$udrl_foto=="dr")
          {
          echo 
"<option value="ul">$optconf[28]</option><option value="ur">$optconf[29]</option>";
          echo 
"<option value="dl">$optconf[30]</option><option selected value="dr">$optconf[31]</option>";
          }
          echo 
"</select></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[32]</td><td width=100><input class=p name=label_ type=text value="$label"></td></tr>";

          echo 
"<tr><td align=left width=427>$optconf[33]</td><td width=100><select size="1" name=font_facettf_>";
          include (
"font/font.ini.php");
          for (
$qsdfq=0;$qsdfq<count($face_font);$qsdfq++)
          {           
$font_face_tmp='../font/'.$face_font[$qsdfq];           if ($font_facettf==$font_face_tmp)
          { echo 
"<option value="../font/$face_font[$qsdfq]" selected>$face_font[$qsdfq]</option>"; }
          else
          { echo 
"<option value="../font/$face_font[$qsdfq]">$face_font[$qsdfq]</option>"; }
          }
          echo 
"</select></td></tr>";

          echo 
"<tr><td align=left width=427>$optconf[34]</td><td width=100><input class=p name=size_ type=text value=$size></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[35]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:win_col_tab('editor/table_color.php?id_win=bg5','win1');">$optconf[36]</a></td><td width=100><input id="bg5"class=p name=rgb_color_ type=text value=$rgb_color style="color:$rgb_color;"></td></tr>";

          echo 
"<tr><td align=left width=427>$optconf[37]</td><td width=100><select size="1" name=reflection_and_poster_>";
          if (
$reflection_and_poster=="1") {echo "<option value="1" selected>$opton</option><option value="0">$optoff</option>";}
          else {echo 
"<option value="1">$opton</option><option value="0" selected>$optoff</option>";}
          echo 
"</select></td></tr>";

          echo 
"<tr><td align=left width=427>$optconf[38]</td><td width=100><select size="1" name=add_foto_protect_>";
          if (
$add_foto_protect=="1") { echo"<option value="1" selected>$opton</option><option value="0">$optoff</option>";} else { echo"<option value="1">$opton</option><option value="0" selected>$optoff</option>";}
          echo 
"</select></td></tr>";
          if (
$add_foto_protect=="1")
          {
          echo 
"<tr><td align=left width=427>$optconf[39]</td><td width=100><select size="1" name=kolvo_foto_protect_>";
          switch (
$kolvo_foto_protect)
          {
          case 
: echo "<option value="1" selected>1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option>"; break;
          case 
: echo "<option value="1">1</option><option value="2" selected>2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option>"; break;
          case 
: echo "<option value="1">1</option><option value="2">2</option><option value="3" selected>3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option>"; break;
          case 
: echo "<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4" selected>4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option>"; break;
          case 
: echo "<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5" selected>5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option>"; break;
          case 
: echo "<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6" selected>6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option>"; break;
          case 
: echo "<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7" selected>7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option>"; break;
          case 
: echo "<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8" selected>8</option><option value="9">9</option><option value="10">10</option>"; break;
          case 
: echo "<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9" selected>9</option><option value="10">10</option>"; break;
          case 
10 : echo "<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10" selected>10</option>"; break;
          default : echo 
"<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option>"; break;
          }
          echo 
"</select></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[40]</td><td width=100><input class=p name=font_size_foto_protect_ type=text value="$font_size_foto_protect"></td></tr>";
          echo 
"<tr><td align=left width=427>$optconf[41]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:win_col_tab('editor/table_color.php?id_win=bg6','win1');">$optconf[36]</a></td><td width=100><input id="bg6"class=p name=font_color_foto_protect_ type=text value="$font_color_foto_protect" style="color:$font_color_foto_protect;"></td></tr>";
          }
          else
          {
          echo 
"<input name="kolvo_foto_protect_" type="hidden" value="$kolvo_foto_protect">";
          echo 
"<input name="font_size_foto_protect_" type="hidden" value="$font_size_foto_protect">";
          echo 
"<input name="font_color_foto_protect_" type="hidden" value="$font_color_foto_protect">";
          }
}
else
{
echo 
"<input name=udrl_foto_ type=hidden value=$udrl_foto><input name=label_ type=hidden value="$label">";
echo 
"<input name="font_facettf_" type="hidden" value="$font_facettf"><input name="size_" type="hidden" value="$size">";
echo 
"<input name="red_color_" type="hidden" value="$red_color"><input name="green_color_" type="hidden" value="$green_color">";
echo 
"<input name="blue_color_" type="hidden" value="$blue_color">";
}

          echo 
"<tr><td align=left width=427>$optconf[19]</td><td width=100><select size="1" name=module_comment_>";
if (
$module_comment==0) {echo"<option value="1">$opton</option><option selected value="0">$optoff</option>";} else {echo"<option selected value="1">$opton</option><option value="0">$optoff</option>";}
          echo 
"</select></td></tr>";

          echo 
"<tr><td colspan=2 align=center><input type=submit style="color:#000000;width: 200px;cursor:hand;" name=change_opt value="$opsave" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';"><br><font color="#999999"></font></td></tr>";
          
echo "</form></table>";
if (
$module_comment==1)
{ include 
"comment/config.inc.php"; echo "<tr><td bgcolor=#FFFFFF align=center><form action=admin.php?options method=post>";
          echo 
"<table width=590 cellspacing=5 cellpadding=1 border=0 class=p><tr><td>";
include 
"comment/admin.php";
echo 
"</td></tr></table></td></tr>";
}
          echo 
"</td></tr></table>";
     endif;

     if (
$QUERY_STRING == "about"):
          echo 
"</td></tr><tr><td><table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">";
          
echo "<tr><td class="p" bgcolor="#E8E8FF" align="center"><b>$mdow</b> WebPhoto $version</td></tr>";
          
echo "<tr><td class="p" bgcolor="#FFFFFF" align="center">";
          
echo "<br>$data_vipuska_bas".':'." <b>$ot_data</b><br><br></td></tr></table>";
          include (
$help_lang_vibor);
     endif;
     if (
ereg("^ftalb_com",$QUERY_STRING)):
     
$data_arrai file("data/album.dat");
                foreach(
$data_arrai as $i=>$string)
                        {
                        list(
$albom[],$alname[])= explode("::","$string");
                        }

                    if(isset (
$albom))
                    {      include 
"comment/config.inc.php";
     include 
"comment/admin.php";
                    }
     endif;

else:
     if(
$error!="") echo "<table width=600 border=0 cellspacing=1 cellpadding=3 bgcolor=#CCCCCC><tr><td align=center  class=error bgcolor=#FF0000><b>$error</b></td></tr></table>";
?>
</td></tr><tr><td>
<table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">
<form action="" method="post">
<tr><td class="p" bgcolor="#E8E8FF" align="center"><b><?=$logvxod?> </b></td></tr>
<tr><td class="p" bgcolor="#FFFFFF"><table><tr><td class="p" width="210" align="right"><?=$loglogin?></td><td class="p" width="390" align="left"><input type="text" name="alogin" size="30"></td></tr></table></td></tr>
<tr><td class="p" bgcolor="#FFFFFF"><table><tr><td class="p" width="210" align="right"><?=$logpassword?></td><td class="p" width="390" align="left"><input type="password" name="pass" size="30"></td></tr></table></td></tr>
<tr><td align="center" bgcolor="#FFFFFF"><input type="submit" name="go_in_to_vxod" value="<?=$logvoid?>" style="width:100px;cursor:hand;" onmouseover="this.style.backgroundColor='#E8E8FF';" onmouseout="this.style.backgroundColor='#FFFFFF';"></td></tr>
</form>
</table>
<?php
     
if (!file_exists("data/passwd.dat"))
          echo 
"</td></tr><tr><td><table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC"><tr><td align="center"  class="p" bgcolor="#FFFFFF">$logfirst</td></tr></table>";
endif;
?>
</td></tr>
<tr><td>
<?php
include("config.inc.php");
if (
$end == 1):
   echo 
"<table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC"><tr><td align="center" class="p1" bgcolor="#E8E8FF"><a href="http://www.webprogs.ru" target=_blank>WebProgs</a> © 2008-2009</td></tr></table>";
endif;
?>
</td></tr>
</table>
</div>
</body>
</html>
Онлайн: 0
Реклама