PageRenderTime 35ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/index.php

http://db-script.googlecode.com/
PHP | 83 lines | 47 code | 14 blank | 22 comment | 15 complexity | b961cd2fe641dacd25abb6336751ef1e MD5 | raw file
  1. <?php ob_start (); // ?????? ????????? ????????? ? ?????? DBSCRIPT v2.1 (?) dj--alex
  2. //header ("Location: main.php"); ??? ???? ?????? ?? ?? ?????????? ?? ???? ??? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>
  3. //$nomnu=1;
  4. $x=($_SERVER['HTTP_REFERER']);
  5. $dbs_ip =$_SERVER['REMOTE_ADDR']; $dbs_ref= $_SERVER['HTTP_REFERER'];
  6. $y=($_SERVER['SERVER_NAME']);
  7. $xx=strpos ($x,"mho.ws");
  8. //pre-rendered command script /?VARNAME=parameter filemgr.php reserved $c,$i,$f r.php reserved $r
  9. if ($xx>0) { ob_clean (); header ("Location: http://dj.chg.su/mestatus.php"); exit;}
  10. # ob_clean ();
  11. #header ("Location: http://wow.chg.su/wow/s",5); exit;
  12. $q=($_SERVER['QUERY_STRING']);
  13. if (($q[0]=="f")OR($q[0]=="c")OR($q[0]=="i")) { $redirectto="filemgr.php"; }; // typical link ?c=IDID
  14. if (($q[0]=="a")OR($q[0]=="u")) { $redirectto="admin.php"; };
  15. if (($q[0]=="r")OR($q[0]=="t")) { $redirectto="r.php"; }; // typical link ?tbl=6&m=2&vID=361&vID2=
  16. if (($q[0]=="w")) { $redirectto="w.php"; };
  17. $dest="$redirectto"."?"."$q";
  18. //echo "r=".$redirectto."<br>q=".$q."<br>$q[0]==".$q[0]."<br><br>d=$dest" ;
  19. //exit;
  20. if ($redirectto) header ("Location: ".$dest);
  21. ob_flush ();
  22. @$a=opendir ("_conf"); if ($a==false) Header("Location: install.php");
  23. require ('dbscore.lib'); // ??????? ?????????? ? ?????? ? ???????????
  24. if ($frameoldcore==0) {require_once ("main.php");}
  25. ?>
  26. <b><h3><font color=red><a href="login.php"><?=cmsg ("ENTER"); ?></b></h></a>
  27. <br>
  28. <?
  29. echo "</font>".date ("d.m.Y H-i-s")."<br>";
  30. if ($frameoldcore==1) {
  31. autoexecsql (0);
  32. if (($go=="relogin")or($add<0)) {
  33. if (!isset($_SERVER['PHP_AUTH_USER']) ||
  34. ($_POST['SeenBefore'] == 1 && $_POST['OldAuth'] == $_SERVER['PHP_AUTH_USER'])) {
  35. authenticate();$add++;} else {
  36. echo "<form action='{$_SERVER['PHP_SELF']}' METHOD='post'>\n";
  37. hiddenkey ("SeenBefore",1);$go=="0";
  38. hiddenkey ("OldAuth",$_SERVER['PHP_AUTH_USER']);
  39. submitkey ("write","AUTHEN");
  40. echo "<br><br>If you seen this message, you have a problem with run dbscript 4.<br>";
  41. echo "<br>If this is authorization problem, we recommend use standart authentication mechanism.<br><br>";
  42. echo "</form></p>\n";$add++;
  43. }
  44. }
  45. ?>
  46. <frameset rows="*" COLS="15%, 85%" framespacing="0" frameborder="YES" border="0">
  47. <frame src="indexmenu.php" name="mainFrame" scrolling="NO" noresize>
  48. <frame src="main.php" name="rightFrame">
  49. </frameset>
  50. <noframes><body>??? ??????? ?? ???????????? ??????. ???????? ???.
  51. </noframes>
  52. <?
  53. }
  54. /*
  55. * <!--[if (gte IE 5.5)&(lt IE 10)]>
  56. <div class="iedanger">?? ??????????? ?????????? ?????? ???????? Internet Explorer, ? ?????? ???? ??????????? ??? ??? ? ??????????? ????????. ????? ???????? ??? ??????? ?????? ??? ?????????? ???????? ??? ???????,?? ??????????? <a href="http://getfirefox.com">Firefox 4 </a>, ???? ?????????????? ??????? ???????????? ??????????. ????? ????, ????????????? ?????????? ?????? Internet Explorer ????? ????????? ?????????? ?? ???????????? ?????? ?????????? (???????????? ???????,????? ??????? ??????? ? ?????????, ? ??????.).</div>
  57. <p><![endif]-->
  58. *
  59. * javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300;
  60. y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img");
  61. DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style;
  62. DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px";
  63. DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5);
  64. void(0)
  65. ????? ??? ??? ?????? ?? ????? ? ?????????? ? ?????? ?????? ?????? ?????? ????? :)))
  66. */
  67. ?>