'archives'); reloadSettings(); loadUserSettings(); loadSession(); writeLog(); //--- Log online if ( !function_exists('myurlencode') ) { function myurlencode($t) { return urlencode ( $t ); } } //Please do not remove the link to the script : function tr2en($str) { $turkish = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","R","S","T","U","V","Y","Z","","","","","","","","","","","","",""," ","?",".","(",")","'","!",";",":","=",",","%","$","*","<","#","&",">"); $english = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","r","s","t","u","v","y","z","a","c","c","o","o","s","s","g","g","u","u","i","i","-","","","","","","","","","","","","","","","","",""); return str_replace($turkish,$english,$str); } function topicLink ($id, $subject) { global $URLs, $boardurl; if ( $URLs == '/' ) return ''.$subject.''; else return ''.$subject.''; } function boardLink ($id, $cat_name) { global $URLs, $boardurl; if ( $URLs == '/' ) return ''.$cat_name.''; else return ''.$cat_name.''; } //URL types : if ( (!(strpos(php_sapi_name(), 'cgi') !== false) || @ini_get('cgi.fix_pathinfo') == 1) && strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false ) $URLs = '/'; else $URLs = '?'; //Pou briskesai $path = parse_url( $boardurl . '/' ); $path = $path['path']; if ( DEV_MODE ) echo 'DEV : path = ' . $path . "
DEV : REQUEST_URI = ". $_SERVER['REQUEST_URI'] . "
"; if ( $_SERVER['REQUEST_URI'] == $path . 'archives.php' ) // An alaksei to path pou brisketai to script allazei kai edo { $SCREEN = 'main'; } else { //URL BOARD -> archives.php/------/board/id,page //URL TOPIC -> archives.php/------/id $tmp = explode ('/',$_SERVER['REQUEST_URI']); $id = array_pop( $tmp ); if ( array_pop($tmp) == 'board' ) { //Board $SCREEN = 'board'; $id = explode( ',', $id); $page = (int)$id [1]; $id = (int)$id [0]; } else { //Topic: $SCREEN = 'topic'; $id = (int)$id; $context = ''; $request = mysql_db_query($db_name," SELECT ID_MSG, ID_MEMBER, ID_BOARD FROM {$db_prefix}messages WHERE ID_TOPIC = $id ORDER BY ID_MSG ASC ", $db_connection); $messages = array(); $posters = array(); while ($row = mysql_fetch_assoc($request)) { if (!empty($row['ID_MEMBER'])) $posters[] = $row['ID_MEMBER']; $messages[] = $row['ID_MSG']; $board_id = $row ['ID_BOARD']; } mysql_free_result($request); $posters = array_unique($posters); $request = mysql_db_query($db_name," SELECT ID_MSG, icon, subject, posterTime, ID_MEMBER, body, smileysEnabled, posterName FROM {$db_prefix}messages WHERE ID_MSG IN (" . implode(',', $messages) . ") ORDER BY ID_MSG ASC",$db_connection); require_once($boarddir . '/Themes/default/languages/index.turkish.php'); require_once($sourcedir . '/Load.php'); reloadSettings(); $scripturl = '/index.php'; $user_info = array( "time_format"=>"%b %d, %Y, %I:%M:%S %p", "time_offset"=>0 ); $row = mysql_fetch_assoc($request); $title = $row ['subject']; $TOP_link = topicLink($id, $row['subject']); $context .= '
'.$row['posterName'].'
'.date("D j F Y, h:i a",$row['posterTime']) . " GMT " . date(" O", $row['posterTime']).'
'.doUBBC($row['body'],false).'

'; while ( $row = mysql_fetch_assoc($request) ) { $context .= '
'.$row['posterName'].'
'.date("D j F Y, h:i a",$row['posterTime']) . " GMT " . date(" O", $row['posterTime']).'
'.doUBBC($row['body'],false).'

'; } } } if ( DEV_MODE ) echo 'DEV : screen = ' . $SCREEN . '
' . 'DEV : id = ' . $id . '
' . 'DEV : page = ' . $page . '
'; ?>
<?echo $mbname;if ( $title != '' )echo ' - '.$title;?>

Adsense kodlar


Smf Seo Versiyon , -- Seo entegre sistem.

-1); while ($row = mysql_fetch_assoc($request)) { if ($this_cat['id'] != $row['ID_CAT']) { $this_cat = &$context['jump_to'][]; $this_cat['id'] = $row['ID_CAT']; $this_cat['name'] = $row['catName']; $this_cat['boards'] = array(); } $this_cat['boards'][] = array( 'id' => $row['ID_BOARD'], 'name' => $row['boardName'], 'child_level' => $row['childLevel'] + 1, 'redirect' => $row['redirect'] ); } echo '
';	
	foreach ( $context['jump_to'] as $cat)
	{
	  echo ''.$cat['name'].'' . "\n\n";
	  foreach ( $cat['boards'] as $board )
	  {
	    for ( $i=0; $i<$board['child_level']; $i++)
	    	echo "\t";
	    if ( $board['redirect'] )
	    {
		  if ( $URLs == '/' )
	  		echo ''.$board['name'].'';
	  	  else
	  		echo ''.$board['name'].'';
		}
	    else
			echo ''.$board['name'] . "\n";
	    $pre_level = $board['child_level'];
	  }
	  echo "\n";
	}
	echo '
'; break; case 'board': $request = mysql_db_query($db_name," SELECT t.ID_TOPIC, t.ID_LAST_MSG, ml.posterTime AS lastPosterTime, ml.modifiedTime AS lastModifiedTime, ml.subject AS lastSubject, t.ID_FIRST_MSG, mf.posterTime AS firstPosterTime, mf.modifiedTime AS firstModifiedTime, mf.subject AS firstSubject, mf.icon AS firstIcon, mf.posterName AS firstMemberName, mf.ID_MEMBER AS firstID_MEMBER, IFNULL(memf.realName, mf.posterName) AS firstDisplayName, LEFT(ml.body, 384) AS lastBody, LEFT(mf.body, 384) AS firstBody, ml.smileysEnabled AS lastSmileys, mf.smileysEnabled AS firstSmileys FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS ml, {$db_prefix}messages AS mf) LEFT JOIN {$db_prefix}members AS meml ON (meml.ID_MEMBER = ml.ID_MEMBER) LEFT JOIN {$db_prefix}members AS memf ON (memf.ID_MEMBER = mf.ID_MEMBER) WHERE t.ID_BOARD = $id AND ml.ID_MSG = t.ID_LAST_MSG AND mf.ID_MSG = t.ID_FIRST_MSG ORDER BY t.ID_LAST_MSG DESC LIMIT ".($page * $per_page).", $per_page", $db_connection); $start_point = $page * $per_page + 1; echo '
    '."\n"; while ( $row = mysql_fetch_assoc($request) ) { echo "\t".'
  1. '. $row['firstSubject'] . '
  2. ' . "\n"; } echo '
'; break; case 'topic' : echo $context; break; } ?>