• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net

Post your ctrl+v

FUNCTION:

void CGame::DrawDialogBox_Text(short msX, short msY, short msZ, char cLB)

FIND

switch (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg[0]) {
case '_': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 255,255,255); break;
case ';': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 4, 0, 50); break;
default: PutAlignedString(sX +24, sX +236, sY + 50 +i*13, m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg, 45,25,25); break;
}
}
else PutAlignedString(sX +24, sX +236, sY + 50 +i*13, m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg, 0,0,0);
 
PHP:
<?php
/**
* Magic methods, access modifiers, static methods, and typecasting in PHP5/6 OOP
**/
final class Cipher
{
	/**
	* !! NOTE !!
	* As this object is supposed to be cast as a string, there's no point having public member variables
	**/
	private $key =		null;
	private $input =	null;
	
	/**
	* !! NOTE !!
	* $input and $key are recived by reference, to save memory while chewing large amounts of data
	**/
	public function __construct( &$input, &$key )
	{
		$this->key = substr
		(
			str_repeat
			(
				$key,
				ceil( strlen( $input ) / strlen( $key )  )
			),
			0,
			strlen( $input )
		);
		$this->input = &$input ;
	}
	
	/**
	* !! NOTE !!
	* This method is private, the reason being it's magic and you shouldn't call magic methods manually
	**/
	private function __toString( )
	{
		$output = array( );
		
		for( $i = 0; $i < strlen( $this->input ); $i++ )
		{
			$output[$i] = $this->key{$i} ^ $this->input{$i};
		}
		
		return implode( null, $output );
	}
	
	/**
	* !! BEWARE !!
	* This will work on written language or html or binary data, it will not work on most peoples idea of a password
	* This is a demonstration only of calling methods statically, in production you would base64_encode yourself
	* I'm sure there is a way to detect  a base64 encode'd string, so go find it ...
	**/
	public static function Base64( &$input, &$key )
	{
		if( preg_match( '~^([A-Za-z0-9\+/]+)(={1,3}?)$~', $input ) )
		{
			return new self( base64_decode( $input ), $key );
		}
		else return base64_encode( new self( $input, $key ) );
	}
}
/**
* __construct params
**/
$key = 'mysecretkeythatisquitelong'; # padded to secret length
$secret = 'Written language, read the notes'; # whatever you wanna hide

printf( "String to cipher: %s\r\n", $secret );
printf( "Key used for cipher: %s\r\n\r\n", $key );

/**
* !! NOTE !!
* The object is cast to a string to allow for easier processing later when using the result as an argument
* Base64 is static, so you call by referencing the class name NOT the object
**/
$output =	(string) Cipher::Base64( $secret, $key );
$input =	(string) Cipher::Base64( $output, $key );

printf( "Base64: %s\r\n", $output );
printf( "Original: %s\r\n\r\n", $input );

/**
* !! NOTE !!
* The data this produces is not easy on the eye, dont expect to be able to read it, you should store such data in a BLOB in MySQL
**/
$output =	(string) new Cipher( $secret, $key );
$input =	(string) new Cipher( $output, $key );

printf( "Ciphered: %s\r\n", $output );
printf( "Original: %s\r\n", $input );
?>
 
RFID implant as the mark of the beast

A few critics, mostly conservative Evangelical Christians, believe that RFID tagging could represent the mark of the beast, which Revelation 13:16-17 says will be placed by the Antichrist in the right hands or foreheads of humans and necessary for commerce.
"He forced everyone, small and great, rich and poor, free and slave, to receive a mark on his right hand or on his forehead, so that no one could buy or sell unless he had the mark, which is the name of the beast or the number of his name."—Revelation 13:16-17
 
Code:
<?phpfunction MainIndex_theme(){global $user, $logged_in, $globals, $AEF_SESS, $theme, $l;global $categories, $forums, $active, $anonymous, $guests, $mostactive, $mostactive_ever, $inboards, $latest_mem, $active, $activebots, $pm, $onload, $dmenus, $online_today, $recent_posts, $user_groups;		//The header	aefheader();			//Link array of active users	$activeusers = array();		//Build the active users array	foreach($active as $i => $v){			$activeusers[] = '<a href="'.$globals['index_url'].'mid='.$active[$i]['id'].'" style="color: '.$active[$i]['mem_gr_colour'].';" >'.$active[$i]['username'].'</a>';		}		//Are there any Bots	foreach($activebots as $k => $v){			$activeusers[] = $v;		}		//Online Today	if(!empty($online_today)){				$users_today = array();				foreach($online_today as $k => $v){				$users_today[] = '<a href="'.$globals['index_url'].'mid='.$online_today[$k]['id'].'" style="color: '.$online_today[$k]['mem_gr_colour'].';" >'.$online_today[$k]['username'].'</a>';				}		}		if(!empty($user_groups)){			foreach($user_groups as $k => $v){					$user_groups[$k] =  '<a href="'.$globals['index_url'].'act=members&group='.$k.'" style="color: '.$user_groups[$k]['mem_gr_colour'].';" >'.$user_groups[$k]['mem_gr_name'].'</a>';				}		}		//The main loop of the categories	foreach($categories as $c => $cv){	if(isset($forums[$c])){			if(!empty($categories[$c]['collapsable'])){					$js_cat[] = 'cat'.$categories[$c]['cid'];				}		//Echo the link and the Category Name	echo '<br /><table width="100%" cellpadding="0" cellspacing="0" >				<tr>	<td>	<table width="100%" cellpadding="0" cellspacing="0"><tr>	<td class="cbgl"></td>	<td class="cbg">	<a href="'.$globals['index_url'].'#cid'.$categories[$c]['cid'].'" name="cid'.$categories[$c]['cid'].'" style="float:left;">'.$categories[$c]['name'].'</a>			<a href="javascript:slider.slide(\'cat'.$c.'\')" ><img id="icat'.$categories[$c]['cid'].'" src="'.$theme['images'].'expanded.gif" style="float:right;" /></a>	</td>		<td class="cbgr"></td>	</tr>	</table>	</td>	</tr>		<tr>	<td width="100%">	<div id="cat'.$categories[$c]['cid'].'" class="cathide">	<table width="100%" cellpadding="2" cellspacing="1" class="cbgbor" id="tcat'.$categories[$c]['cid'].'">	<tr align="center">	<td class="cbg1" width="6%">&nbsp;</td>	<td class="cbg1" width="48%">'.$l['heading_board'].'</td>	<td class="cbg1" width="10%">'.$l['heading_topics'].'</td>	<td class="cbg1" width="9%">'.$l['heading_posts'].'</td>	<td class="cbg1" width="27%">'.$l['heading_last_post'].'</td>	</tr>';		//The main forum loop of a category	foreach($forums[$c] as $f => $v){			echo '<tr>	<td class="miimg" align="center">	<img src="'.(($forums[$c][$f]['fimage']) ? $forums[$c][$f]['fimage'] : (($forums[$c][$f]['is_read']) ? $theme['images'].'not.png' : $theme['images'].'new.png')).'">	</td>		<td class="mifor">	<font class="forlink">	<a href="'.(($forums[$c][$f]['fredirect']) ? $forums[$c][$f]['fredirect'] : $globals['index_url'].'fid='.$forums[$c][$f]['fid'] ).'">'.$forums[$c][$f]['fname'].'</a>	</font><br />	<font class="desc">	'.$forums[$c][$f]['description'].'	</font><br />';		//Make the moderators array if there are any	if(isset($forums[$c][$f]['moderators'])){				$boardmoderators[$f] = array();				foreach($forums[$c][$f]['moderators'] as $mk => $mv){					$boardmoderators[$f][] = '<a href="'.$globals['index_url'].'mid='.$forums[$c][$f]['moderators'][$mk]['id'].'">'.$forums[$c][$f]['moderators'][$mk]['username'].'</a>';				}								echo '<div style="padding-top:4px;padding-bottom:2px;"><font class="modtxt">'.$l['forum_moderators'].' </font>';				echo implode(' , ', $boardmoderators[$f]).'</div>';			}						//Make the In Board array if there are any	if(isset($forums[$c][$f]['in_boards'])){									$inboards[$f] = array();				foreach($forums[$c][$f]['in_boards'] as $ik => $iv){					$inboards[$f][] = (!empty($iv['is_read']) ? '' : '<b>').'<a href="'.$globals['index_url'].'fid='.$forums[$c][$f]['in_boards'][$ik]['fid'].'">'.$forums[$c][$f]['in_boards'][$ik]['fname'].'</a>'.(!empty($iv['is_read']) ? '' : '</b>');				}				echo '<div style="padding-top:3px;"><font class="inbtxt">'.$l['forum_in_boards'].'</font>';			echo implode(' , ', $inboards[$f]).'</div>';			}			echo '</td>		<td class="mitop">	'.$forums[$c][$f]['ft_topic'].'	</td>		<td class="miposts">	'.$forums[$c][$f]['ft_posts'].'</td>		<td class="milp">';		if(empty($forums[$c][$f]['tid'])){			echo $l['no_last_post'];			}else{			echo '&nbsp;'.$forums[$c][$f]['pdate'].'<br />'.		$l['in'].' <a href="'.$globals['index_url'].'tid='.$forums[$c][$f]['tid'].'" title="'.$l['go_to_first_post'].'">'.$forums[$c][$f]['topic'].'</a>&nbsp;&nbsp;&nbsp;<a href="'.$globals['index_url'].'tid='.$forums[$c][$f]['tid'].'&tpg='.$forums[$c][$f]['last_page'].'#p'.$forums[$c][$f]['pid'].'" title="'.$l['go_to_last_post'].'"><img src="'.$theme['images'].'right.gif" /></a><br />'.		$l['by'].' '.(empty($forums[$c][$f]['username']) ? (empty($forums[$c][$f]['gposter_name']) ? $l['guest'] : $forums[$c][$f]['gposter_name']) : '<a href="'.$globals['index_url'].'mid='.$forums[$c][$f]['poster_id'].'">'.$forums[$c][$f]['username'].'</a>');			}		echo '</td>	</tr>';		}//end the forums loop		//The end of the table	echo '	</table>	</div>		</td>				</tr>		<tr><td><div class="end"><div class="end_left"><div class="end_right"></div></div></div></td></tr>			</table>';		}//End of IF		}//End of categories Loop		echo '<script language="javascript" src="'.$theme['url'].'/js/slider.js" type="text/javascript"></script>';		if(!empty($js_cat)){			echo '<script type="text/javascript">		slider = new slider();		slider.elements = new Array(\''.implode('\', \'', $js_cat).'\');		addonload(\'slider.init();\');		</script>';			}	//The row before the Statisticsecho '<br /><br /><table border="0" width="100%" cellspacing="0" cellpadding="5" class="cbor" style="border:1px solid #000;"><tr><td align="left"><img src="'.$theme['images'].'/new.png" alt="" border="0" align="middle" /> '.$l['new_posts'].' &nbsp;&nbsp;&nbsp;<img src="'.$theme['images'].'/not.png" alt="" border="0" align="middle" /> '.$l['no_new_posts'].'</td><td align="right">'.($logged_in ? '<a href="'.$globals['index_url'].'act=markread&mark=board">'.$l['mark_board_read'].'</a>' : '').'</td></tr></table>';	//The Statistics Centerecho '<br /><br /><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td class="cbgl"></td><td align="left" colspan="2" class="cbg">'.$l['statistics'].'</td><td class="cbgr"></td></tbody></table></tr><table border="0" width="100%" cellspacing="1" cellpadding="4" class="cbor">';if(!empty($recent_posts)){echo '<tr><td colspan="2" class="cbg1" align="left">'.$l['recent_posts'].'</td></tr><tr><td align="center" class="miposts" width="5%"><img src="'.$theme['images'].'postedon.png" alt="" /></td><td class="mifor" style="font-size:12px">';foreach($recent_posts as $rk => $rv){	echo '('.$rv['pdate'].') <b><a href="'.$globals['index_url'].'tid='.$rv['tid'].'&tpg='.$rv['last_page'].'#p'.$rv['pid'].'">'.$rv['topic'].'</a></b> '.$l['by'].' <a href="'.$globals['index_url'].'mid='.$rv['id'].'">'.$rv['username'].'</a>   (<a href="'.$globals['index_url'].'fid='.$rv['fid'].'">'.$rv['fname'].'</a>)<br />';}echo '</td></tr>';}echo '<tr><td colspan="2" class="cbg1" align="left">'.($user['view_active'] ? '<a href="'.$globals['index_url'].'act=active">'.$l['active_users'].'</a>' : $l['active_users'] ).'</td></tr><tr><td align="center" class="miposts" width="5%"><img src="'.$theme['images'].'onlineusers.png" alt="" /></td><td class="mifor">'.($guests + count($active) + (empty($anonymous) ? 0 : $anonymous)).' '.$l['online_users'].' '.$l['in_the_past'].' '.$globals['last_active_span'].' '.$l['minutes'].' ('.$guests.' '.$l['online_guests'].', '.count($active).' '.$l['online_members'].(($anonymous) ? ', '.$anonymous.' '.$l['online_anonymous'] : '' ).')'.(!empty($activeusers) ? '<hr />'.implode(', ', $activeusers) : '').'<hr />'.$l['most_online_today'].' <b>'.$mostactive.'</b>. '.$l['most_online_ever'].' <b>'.$mostactive_ever[0].'</b> '.$l['on'].' <b>'.datify($mostactive_ever[1]).'</b></td></tr>';if(!empty($online_today)){	echo '<tr><td colspan="2" class="cbg1" align="left">'.$l['users_online_today'].' : '.count($users_today).'</td></tr><tr><td align="center" class="miposts" width="5%"><img src="'.$theme['images'].'onlineusers.png" alt="" /></td><td class="mifor">'.implode(', ', $users_today).'</td></tr>';}if($user['view_members']){echo '<tr><td colspan="2" class="cbg1" align="left">'.$l['all_members'].'</td></tr><tr><td align="center" class="miposts" width="5%"><img src="'.$theme['images'].'online.gif" /></td><td class="mifor"><b><a href="'.$globals['index_url'].'act=members">'.$l['members'].'</a></b><br />'.$l['list_of_members'].(!empty($user_groups) ? '<hr />'.$l['user_groups'].' : '.implode(', ', $user_groups) : '').'</td></tr>';}echo '<tr><td colspan="2" class="cbg1" align="left">'.$l['board_stats'].'</td></tr><tr><td align="center" class="miposts" width="5%"><img src="'.$theme['images'].'stats.gif" /></td><td class="mifor">'.$l['total_posts'].' <b>'.$globals['tot_posts'].'</b><br />'.$l['total_topics'].' <b>'.$globals['tot_topics'].'</b><br />'.$l['registered_members'].' <b>'.$globals['num_mem'].'</b><br />'.$l['welcome_new_member'].', <b><a href="'.$globals['index_url'].'mid='.$latest_mem[1].'" >'.$latest_mem[0].'</b></td></tr></table><div class="end"><div class="end_left"><div class="end_right"></div></div></div>';		//Do you have an new PM then pop up	if(!empty($pm)){	echo '<div id="newpm" style="left:275px;top:200px;position:absolute;width:250px;"><table width="100%" id="newpm_h" cellspacing="0" cellpadding="0"><tr><td class="dwhl"></td><td align="left" class="dwhc"><b>'.$l['new_pm'].'</b></td><td align="right" class="dwhc"><a href="javascript:hideel(\'newpm\')"><img src="'.$theme['images'].'close.gif"></a></td><td class="dwhr"></td></tr></table><table width="100%" cellspacing="0" cellpadding="5" class="dwbody"><tr><td style="border-bottom:solid 1px #CCCCCC;">'.$l['pm_subject'].' <a href="'.$globals['index_url'].'act=usercp&ucpact=showpm&pmid='.$pm['pmid'].'">'.$pm['pm_subject'].'</a></td><td style="border-bottom:solid 1px #CCCCCC;" align="right">'.$l['pm_sender'].' <a href="'.$globals['index_url'].'mid='.$pm['id'].'">'.$pm['sender'].'</a></td></tr><tr><td colspan="2">'.$pm['pm_body'].'</td></tr><tr><td align="left" class="dwb" colspan="2"></td></tr></table></div><script type="text/javascript">	Drag.init($("newpm_h"), $("newpm"));</script>';		}	//The defualt footersaeffooter();}?>
 
Back
Top