ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] index.php
@ 2002-10-08 11:33 Smirnov Alexey
  2002-10-08 11:42 ` Leonid Sysoletin
  0 siblings, 1 reply; 3+ messages in thread
From: Smirnov Alexey @ 2002-10-08 11:33 UTC (permalink / raw)
  To: sisyphus, serg

[-- Attachment #1: Type: text/plain, Size: 90 bytes --]


лови
в настройках апача по умолчанию индексом счиатется файл index.php
-- 
Best regards.

[-- Attachment #2: index.php --]
[-- Type: text/plain, Size: 215 bytes --]

<?php
//include("./php/header.php")
//ob_start();
//include( "/usr/local/lib/php/class.gzip_encode.php" );

include("/usr/local/apache/htdocs/php/main.php");

//new gzip_encode();
//include("./php/footer.php") 

?>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: main.php --]
[-- Type: text/x-c++src; charset="us-ascii"; name="main.php", Size: 5231 bytes --]

<?php
//======================================================================================================================
//                                     
//      ÇÌÁ×ÎÁÑ ÓÔÒÁÎÉÃÁ               
//                                     
//----------------------------------------------------------------------------------------------------------------------


require_once "/usr/local/apache/htdocs/php/common.inc.php";
$name = "main";
define( "DEBUG_ENV", true );

//ËÏÎÎÅËÔ Ë ÐÏÓÔÇÒÅÓÕ
$db = myConnect();

//ÎÁÞÎÅÍ ÓÅÓÓÉÀ
session_start();
session_register( "usernick","userpasswd","username","usermail","userbirthday","userpol");

if( !isset( $_SESSION["usernick"] )	|| 
    !isset( $_SESSION["userpasswd"] )	||
    !isset( $_SESSION["username"] )	||
    !isset( $_SESSION["usermail"] )	||
    !isset( $_SESSION["userbirthday"] ) ||
    !isset( $_SESSION["userpol"] )         )	//ÅÓÌÉ ÐÕÓÔÏ ÏÄÎÏ ÉÚ ÓÅÓÓÉÏÎÎÙÈ ÚÎÁÞÅÎÉÊ
{
    //ÐÒÏ×ÅÒÉÍ ÅÓÔØ ÌÉ ÎÁ ËÌÉÅÎÔÅ ËÕËÉÓ Ó ÅÇÏ ÉÍÅÎÅÍ É ÐÁÒÏÌÅÍ
    if( !empty($_COOKIE["uniuser"]) )
    {
	//echo "cook: ".$_COOKIE["uniuser"]; exit; 
    	//ÚÁÐÉÛÅÍ ÉÚ ËÕËÉÓÁ × ÓÅÓÓÉÀ
    	$_SESSION["usernick"] = $_COOKIE["uniuser"];		//ÓÅÓÓÉÏÎÎÏÅ ÚÎÁÞÅÎÉÅ ÀÚÅÒÏ×ÓËÏÇÏ ÎÉËÁ
	//echo "nick: ". $_COOKIE["uniuser"];
	if( !empty($_COOKIE["unipasswd"]) )
	{
	    //ÐÏ ÉÍÅÎÉ ÉÚ ËÕËÁ ÎÁÊÄÅÍ ÅÇÏ ÄÁÔÕ ÒÏÖÄÅÎÉÑ
	    $result = $db->query("SELECT birthday,realname,email,pol FROM users WHERE nick='".addslashes($_COOKIE["uniuser"])."' AND password='".addslashes($_COOKIE["unipasswd"])."'");
	    if( $result->numRows() )
	    {
		$row = $result->fetchRow();
		$_SESSION["userpasswd"] = $_COOKIE["unipasswd"];	//ÓÅÓÓÉÏÎÎÏÅ ÚÎÁÞÅÎÉÅ ÐÁÒÏÌÑ
		$_SESSION["userbirthday"] = $row[0];			//ÄÅÎØ ÒÏÖÄÅÎÉÑ
		$_SESSION["username"] = $row[1];			//ÒÅÁÌØÎÏÅ ÉÍÑ ÀÚÅÒÁ
		$_SESSION["usermail"] = $row[2];			//ÅÇÏ ÍÙÌÏ
		$_SESSION["userpol"] = $row[3];				//ÐÏÌ (y - ÍÕÖÉË, f - ÎÅÍÕÖÉË)
		$result->free();
		header( "Location: ".$_SERVER["PHP_SELF"] );
		exit;
	    }
	    else	//ÅÓÌÉ × ËÕËÉÓÁÈ ÅÓÔØ ÐÁÒÏÌØ ÎÅÐÒÁ×ÉÌØÎÙÊ ÔÏ ÕÄÁÌÉÍ ÜÔÏÔ ËÕËÉÓ
		setcookie("unipasswd","","","/");
	}
    }
    //else
    //	echo "ÓÔÒÁÎÎÏ..."; exit;
    // × ËÏÎÃÅ ÐÅÒÅÐÒÁ×ÉÍ ÀÚÅÒÁ ÓÎÏ×Á ÎÁ /
    //header( "Location: ".$_SERVER["CHARSET_HTTP_METHOD"].$_SERVER["HTTP_HOST"]."/");
}

header("Pragma: no-cache");

?>

<HTML>
<HEAD>
   <TITLE>Uniland-Yekaterinburg</TITLE>
</HEAD>

<BODY BGCOLOR="#A0BBF1" LINK="#000000" VLINK="#000000">

<?php 
if( !empty($_SESSION["username"]) )
{
	echo "
	<DIV ALIGN=\"center\">
	  <TABLE WIDTH=\"100%\" CELLSPACING=\"1\">
	    <TR><TD BGCOLOR=\"#000000\">
	      <TABLE WIDTH=\"100%\" CELLSPACING=\"0\">
	        <TR>
	          <TD ALIGN=\"center\" BGCOLOR=\"FFFFFF\">ðÒÉ×ÅÔÓÔ×ÕÀ ÷ÁÓ, ".(($_SESSION["userpol"]=="t")?"Õ×ÁÖÁÅÍÙÊ ":"Õ×ÁÖÁÅÍÁÑ ").$_SESSION["username"]."!
	          </TD>
                </TR>
	      </TABLE>
	    </TD></TR>
	  </TABLE>
        </DIV>"; 
}
?>

<table border="0" cellpadding="5" cellspacing="1" width="100%">
  <tr>
    <td><table width="100%">
      <tr>
	    <!--ÐÅÒ×ÁÑ ÑÞÅÊËÁ ËÏÒÎÅ×ÏÊ ÔÁÂÌÉÃÙ-->
        <td align="right" valign="top" width="35%">
		  <table border="0" width="100%">
		    <tr><td align="right">
			  <!--ÔÁÂÌÉÃÁ Ó ÌÉÎËÁÍÉ-->
              <?php require( "/usr/local/apache/htdocs/php/links.php" ); ?>
			</td></tr>
			<tr><td align="right">
              <!-- counter -->
              <?php require("/usr/local/apache/htdocs/php/counter.php");?>
			</td></tr>
		  </table>	
        </td>

        <!--×ÔÏÒÁÑ ÑÞÅÊËÁ ËÏÒÎÅ×ÏÊ ÔÁÂÌÉÃÙ-->
	<?php include("/usr/local/apache/htdocs/php/second_cell.php");?>
        <!--ÚÄÅÓØ ËÏÎÅà ×ÔÏÒÏÊ ÑÞÅÊËÉ ËÏÒÎÅ×ÏÊ ÔÁÂÌÉÃÙ-->	


        <!--ÔÅÐÅÒØ ÔÒÅÔØÑ ÑÞÅÊËÁ ËÏÒÎÅ×ÏÊ ÔÁÂÌÉÃÙ-->
        <td align="left" valign="top"  width="25%">
		  <table border="0" width="100%">
		    <tr><td>
              <!--ËÁÌÅÎÄÁÒØ-->
              <table border="0" cellpadding="0"><tr><td bgcolor="#000000" align="center">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                  <!--ËÁÌÅÎÄÁÒØ ÚÁ ÔÅËÕÝÉÊ ÍÅÓÑÃ-->
                  <tr><td bgcolor="FFFFFF">
			<?php require( "/usr/local/apache/htdocs/php/calendar.php"); ?>
                  </td></tr>
                </table>
              </td></tr></table>
             <!--ËÏÎÅÃ ËÁÌÅÎÄÁÒÑ-->
		    </td></tr>  
			<tr><td>
              <!--ËÁÒÔÉÎËÁ Ó ÐÏÇÏÄÏÊ-->
			<img src="/imgs/fobos.gif" width="120" height="120" border="0" alt="ðÏÇÏÄÁ × åËÁÔÅÒÉÎÂÕÒÇÅ">
			  <!--img src="/imgs/meteo_tv.gif" width="100" height="155" border="0" alt="ðÏÇÏÄÁ ÏÔ íÅÔÅÏ-ô÷"-->
              <!--br-->
              <!--?php require( "/usr/local/apache/htdocs/html/meteo_tv.htm" ); ?-->
			</td></tr>  
            <!--br-->
			<tr><td>
		      <!--ËÕÒÓ ÇÒÉÎÁ-->
              <?php include( "/usr/local/apache/htdocs/php/greens.php" ); ?>
		      <!--br-->
			</td></tr>
			<tr><td>
			  <!--ËÁÒÔÉÎËÁ Ó ÂÉÏÒÉÔÍÁÍÉ-->
		      <?php include( "/usr/local/apache/htdocs/php/bio/bioform.php" ); ?>
			</td></tr>  
			<tr><td>
			  <?php include( "/usr/local/apache/htdocs/php/register/loginform.php" ); ?>
			</td></tr>
		  </table>
		<!--ËÏÎÅà ÔÒÅÔÅÊ ÑÞÅÊËÉ ËÏÒÎÅ×ÏÊ ÔÁÂÌÉÃÙ-->  
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>

</body>
</html>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] index.php
  2002-10-08 11:33 [sisyphus] index.php Smirnov Alexey
@ 2002-10-08 11:42 ` Leonid Sysoletin
  2002-10-08 12:05   ` Smirnov Alexey
  0 siblings, 1 reply; 3+ messages in thread
From: Leonid Sysoletin @ 2002-10-08 11:42 UTC (permalink / raw)
  To: sisyphus

Вторник, 8 Октябрь 2002 15:33, Smirnov Alexey написал:
> лови
> в настройках апача по умолчанию индексом счиатется файл index.php

Что это было?

-- 
Л. Сысолетин,
webmaster@unicon-ms.ru
[Team Ёжики-рулез!]  [Team Котёнки на солярке] [Team Берегите букву "ё"!]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] index.php
  2002-10-08 11:42 ` Leonid Sysoletin
@ 2002-10-08 12:05   ` Smirnov Alexey
  0 siblings, 0 replies; 3+ messages in thread
From: Smirnov Alexey @ 2002-10-08 12:05 UTC (permalink / raw)
  To: sisyphus

8 Октябрь 2002 17:42, Leonid Sysoletin написал:
> Вторник, 8 Октябрь 2002 15:33, Smirnov Alexey написал:
> > лови
> > в настройках апача по умолчанию индексом счиатется файл index.php
>
> Что это было?
sorry
нажал Создать письмо стоя на папке с листом рассылки :(

-- 
Best regards.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-08 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-08 11:33 [sisyphus] index.php Smirnov Alexey
2002-10-08 11:42 ` Leonid Sysoletin
2002-10-08 12:05   ` Smirnov Alexey

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git