Location: PHPKode > projects > Openelibrary > e-library/community.old.php
<?php 
session_start();
ob_start();
?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1 
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php
if (@phpversion() >= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off')) { // PHP5 with register_long_arrays off
	$HTTP_POST_VARS = &$_POST;
	$HTTP_GET_VARS = &$_GET;
	$HTTP_SERVER_VARS = &$_SERVER;
	$HTTP_COOKIE_VARS = &$_COOKIE;
	$HTTP_ENV_VARS = &$_ENV;
	$HTTP_POST_FILES = &$_FILES;
	if (isset($_SESSION)) $HTTP_SESSION_VARS = &$_SESSION;
}
?>
<?php include ("ewconfig.php") ?>
<?php include ("db.php") ?>
<?php include ("autorsinfo.php") ?>
<?php include ("advsecu.php") ?>
<?php include ("phpmkrfn.php") ?>
<?php include ("ewupload.php") ?>

<?php

?>
<?php include ("header.php") ?>
<div id="content">

	<div id="content2">
<? include('basketbox.php'); ?>
<? include('latestentries.php'); ?>
	</div>
	<div id="content1">	
		<div id="forum">
			<h2><? echo FORUM ?></h2>	<p><? echo COMMUNITY_TEXT1 ?> <a href="http://www.euromovements.info/forum/" title="Open the forum interface"><? echo FORUM ?></a> <? echo COMMUNITY_TEXT2 ?></p>
		</div>
		<div id="authors">
			<h2><? echo COMMUNITY_TEXT3 ?></h2>
			<p>
				<? echo COMMUNITY_TEXT4 ?>
			</p>
			<ul class="group">

<?
if (IsLoggedIn())
	$myid=CurrentUserID();

//echo "------------".$myid;

$sSqlWrk = "SELECT LASTNAME, FIRSTNAME, EMAIL, EMPLOYEEID  FROM utenti WHERE PROFILE = 1  ORDER BY LASTNAME";

	//$sSqlWrk .= " WHERE 0=1";

$rswrk = phpmkr_query($sSqlWrk,$conn) or die("Failed to execute query at line " . __LINE__ . ": " . phpmkr_error($conn) . '<br />SQL:' . $sSqlWrk);
if ($rswrk) {
	$rowcntwrk = 0;
	while ($datawrk = phpmkr_fetch_array($rswrk)) {

	$x_AutoreList .= '<li class="vcard person"><a href="person_view.php?id_author=' . $datawrk[3].'" title="View author&rsquo;s profile">' ;
	$x_AutoreList .= htmlspecialchars(ucfirst($datawrk[1])) . ' ' . htmlspecialchars(ucfirst($datawrk[0]));
	$x_AutoreList .= '</a>';
	
	
if($datawrk[3] == $myid)
	$x_AutoreList .=  ' [<a href="person_edit.php">'.EDITPROFILE.'</a>]';
	$x_AutoreList .=  '</li>';


		$rowcntwrk++;
	}
}
@phpmkr_free_result($rswrk);

echo $x_AutoreList;
?>


			</ul>
		</div>

		<div id="aresearch">
			<h2><? echo ACTIONRESEARCH ?></h2>
			<? echo ACTIONRESEARCH_TEXT ?>
		</div>
	</div>

</div>
<?php include ("footer.php") ?>

Return current item: Openelibrary