BossBey File Manager
PHP:
7.3.31-1~deb10u1
OS:
Linux
User:
www-data
Root
/
home
/
www
/
inorg
/
coord_old
📤 Upload
рџ“ќ New File
рџ“Ѓ New Folder
Close
Editing: index.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <?php define ('head',1); include_once("db_connect_incl.php"); include_once("auth_incl.php"); include_once("settings_incl.php"); function side_navigation($section_id,$section,$add) { $parent=mysql_result(mysql_query("select parent from sections where id=$section_id;"),0,parent); $sql_query="select * from sections where parent=$section_id and navigate=1 order by `order`;"; $result=mysql_query($sql_query); $n=mysql_numrows($result); $h=$n*20; if ($n>0) { echo ("<table width=150 height=$h border=0 cellspacing=0 cellpadding=0>"); for ($i=0; $i<$n; $i++) { $tname=mysql_result($result,$i,name); $id=mysql_result($result,$i,id); $link=mysql_result($result,$i,link); echo ("<tr height=20>"); if ($section==$id) {echo"<td background=images/index/navigation_back_active_s.gif align=center valign=middle><span class=navigation_active>$tname</span></td>";} elseif ($link!='') {echo"<td align=center valign=middle><a id=navigation$i href=\"$link\" class=navigation_link onmouseover='document.all.navigation$i.style.color=\"000000\"' onmouseout='document.all.navigation$i.style.color=\"ff0000\"'>$tname</a></td>";} else {echo"<td align=center valign=middle><a id=navigation$i href=index.php?section=$id$add class=navigation_link onmouseover='document.all.navigation$i.style.color=\"000000\"' onmouseout='document.all.navigation$i.style.color=\"ff0000\"'>$tname</a></td>";}; echo ("</tr>"); } echo ("</table>"); } elseif ($parent!=0) { side_navigation($parent,$section,$add); } } function global_section($section_id) { global $gsection; $id=$section_id; $parent=mysql_result(mysql_query("select parent from sections where id=$section_id;"),0,parent); if ($parent!=0) {global_section($parent);} else {$gsection=$id;} } $section=$_GET['section']; $title=""; if ($section!='admin') { if ($section=='') {$section=1;} $sql_query="select name from sections where id=$section;"; $result=mysql_query($sql_query); if (mysql_numrows($result)!=0) {$title=mysql_result($result,0,name); $section_title=$title; $title=$title." - ";}; } else { $section_title='Administration'; $title=$title=$section_title." - "; } ?> <html> <head> <script type="text/javascript" language="javascript"> <?php echo (" function expand() { auth.innerHTML=\" <table width=200 height=60 align=center style=\\\"position: absolute; right: 30; top: 10;\\\" bgcolor=000000 cellspacing=1><tr id=auth_color bgcolor=ffffff onmouseover='document.all.auth_color.bgColor=\\\"f7f7f7\\\"' onmouseout='document.all.auth_color.bgColor=\\\"ffffff\\\"'><td><form action=http://$domain/auth.php?section=$section method=post><table height=60><tr height=20><td width=60>Имя:</td><td><input type=text name=user size=15></td></tr><tr height=20><td width=60>Пароль:</td><td><input type=password name=pass size=15></td></tr><tr height=20><td width=60><input type=submit value=Вход></td><td><a href=# class=small_link onclick=\\\"contract()\\\">Скрыть</a></td></tr></table></form></td></tr></table>\" } function contract() { auth.innerHTML=\" \" } "); ?> </script> <title><?php echo $section_title; ?> - Лаборатория Химии Координационных Cоединений</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <link href=stylesheet.css rel="stylesheet" type="text/css"> </head> <body link=FF0000 vlink=FF0000 alink=FF0000 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 style="background-image: url(images/index/struct_top_s.gif); background-repeat: no-repeat; background-position: right top; z-index: 1;"> <a name=top></a> <?php $sql_query="select * from sections where parent=0 and navigate=1 order by `order`;"; $result=mysql_query($sql_query); $n=mysql_numrows($result); $h=$n*27; ?> <table width=100% height=100% border=0 align=center cellpadding=0 cellspacing=0> <tr> <td width=10 height=50 valign=top nowrap><img src=images/index/left3.gif width=10 height=50></td> <td width=140 height=50 valign=top nowrap><img src=images/index/left_top.gif width=140 height=50></td> <td height=50 colspan=2 align=left valign=bottom background=images/index/top_back.png><img src=images/index/top.png width=600 height=50 alt="Лаборатория Химии Координационных Соединний"></td> </tr> <tr> <td width=150 height=250 colspan=2 align=center valign=top background=images/index/left_back_long.gif> <table width=150 height=200 border=0 cellpadding=0 cellspacing=0> <tr> <td width=10 height=200 rowspan=<?php echo $n+1; ?> valign=bottom background=images/index/left3.gif><img src=images/index/left4.gif width=10 height=200 align=bottom></td> <?php for ($i=0; $i<$n; $i++) { if ($section!='admin') {global_section($section);} $tname=mysql_result($result,$i,name); $id=mysql_result($result,$i,id); $link=mysql_result($result,$i,link); if ($gsection==$id) {echo "<td width=140 height=25 align=center background=images/index/but_act.gif><a id=mainmenu$i href=\"index.php?section=$id$add\" class=mainmenu_link onmouseover='document.all.mainmenu$i.style.color=\"ff0000\"' onmouseout='document.all.mainmenu$i.style.color=\"000000\"'><span class=mainmenu_active>$tname</span></a></td>";} elseif ($link!='') {echo "<td width=140 height=25 align=center background=images/index/but.gif><a id=mainmenu$i href=\"$link\" class=mainmenu_link onmouseover='document.all.mainmenu$i.style.color=\"ff0000\"' onmouseout='document.all.mainmenu$i.style.color=\"000000\"'>$tname</a></td>";} else {echo "<td width=140 height=25 align=center background=images/index/but.gif><a id=mainmenu$i href=\"index.php?section=$id$add\" class=mainmenu_link onmouseover='document.all.mainmenu$i.style.color=\"ff0000\"' onmouseout='document.all.mainmenu$i.style.color=\"000000\"'>$tname</a></td>";} ; echo ("</tr><tr>"); } ?> <td width=140 height=50 background=images/index/but.gif> </td> </tr> </table> <br> <?php // HERE SUBSECTION NAVIGATION if ($section==2) {include("navigation2_incl.php");} elseif ($section=='admin') {include("navigationadmin_incl.php");} else { side_navigation($section,$section,$add); } ?> </td> <td colspan=2 rowspan=3 align=left valign=top> <table width=800 border=0 align=left cellpadding=0 cellspacing=0> <tr> <td style="padding:5;"> <?php if (($section!='admin')&&($section!=2)&&($rez>=50)) { echo (" <a href=edit_page.php?section=$section$add><img border=0 src=\"images/config/edit_page_fck.gif\" alt=\"Редактировать текст страницы в редакторе FCK Editor\"></a> <a href=edit_page_mce.php?section=$section$add><img border=0 src=\"images/config/edit_page_mce.gif\" alt=\"Редактировать текст страницы в редакторе TinyMCE\"></a> <a href=edit_page_spaw.php?section=$section$add><img border=0 src=\"images/config/edit_page_spaw.gif\" alt=\"Редактировать текст страницы в редакторе SPAW\"></a> <a href=backup_page.php?section=$section&action=backup$add><img border=0 src=\"images/config/backup_page.gif\" alt=\"Сохранить резервную копию\"></a> "); if (file_exists("backup_index${'section'}_incl.php")) { echo(" <a href=backup_page.php?section=$section&action=restore$add><img border=0 src=\"images/config/restore_page.gif\" alt=\"Восстановить из резервной копии\"></a>"); } echo ("<br>"); }; if (($section!='admin')&&($section!=2)) { $f=file("index${'section'}_incl.php"); $text=""; for ($i=0; $i < sizeof($f); $i++) { $text=$text.$f[$i]; } echo ("$text"); $pattern="/(http.+section[^\"]+)\"/"; $replacement="\\1$add\""; //echo ("$pattern "); //echo $replacement; //echo preg_replace($pattern, $replacement, $text); } elseif ($section=='admin') {include("indexadmin_incl.php");} elseif ($section==2) {include("index2_incl.php");}; ?> </td> </tr> </table> </td> </tr> <tr> <td id=auth colspan=2 align=center valign=top background=images/index/left_back_long.gif> </td> </tr> <tr> <td width=10 height=105 valign=bottom><img src=images/index/struct4.gif width=10 height=105></td> <td width=140 height=105 valign=bottom background=images/index/left_back.gif><img src=images/index/struct3.gif width=140 height=105 align=bottom></td> </tr> <tr> <td width=10 height=37><img src=images/index/struct2.gif width=10 height=37></td> <td width=140 height=37 background=images/index/left_back.gif><img src=images/index/struct1.gif width=140 height=37></td> <td height=37 align=left><img src=images/index/struct5.gif width=39 height=37></td> <td height=37 align=right valign=bottom><img src=images/index/bot_red.gif width=200 height=10></td> </tr> <tr> <td width=10 height=20></td> <td width=140 height=20 valign=top><img src=images/index/struct7.gif width=140 height=20></td> <td height=20 colspan=2 valign=top background=images/index/bot_back_high.gif><img src=images/index/struct6.gif width=71 height=20 align=top><strong><a class=small_link href=http://www.inorg.chem.msu.ru>Кафедра неорганической химии</a> | <a class=small_link href=http://www.chem.msu.ru>Химический факультет</a> | <a class=small_link href=http://www.msu.ru>Московский Государственный Университет</a></font></strong> <?php if ($rez>0) { echo (" <a href=index.php?section=admin$add><img src=images/index/config.gif border=0 alt='Настройки' style=\"cursor: hand; c\\ursor: pointer; position: absolute; right: 1; top: 2;\"></a><a href=index.php?section=$section><img src=images/index/logout.gif border=0 alt='Выйти' style=\"cursor: hand; c\\ursor: pointer; position: absolute; right: 19; top: 2;\"></a> "); } else { echo (" <img src=images/index/login.gif border=0 alt='Администраторская часть' onClick=\"expand()\" style=\"cursor: hand; c\\ursor: pointer; position: absolute; right: 1; top: 2;\"> "); } ?> </td> </tr> </table> </body> </html>
Save
Cancel