All pastes #605125 Raw Edit

Miscellany

public php v1 · immutable
·published 2007-07-05 23:32 UTC
rendered paste body
<?phpinclude('common.php');if ($user->data['user_id'] == ANONYMOUS){	login_box(request_var('redirect', '../shop.php'));}$shop = new store();$action = ( isset($_GET['action']) && $_GET['action'] != '' ) ? $_GET['action'] : '';$store_id = ( isset($_GET['store']) && is_numeric($_GET['store']) ) ? $_GET['store'] : '';$item_id = ( isset($_GET['item']) && is_numeric($_GET['item']) ) ? $_GET['item'] : '';switch ($action){	case 'details':		game_header('Twilight War: Online - ');		$shop->build_inventory($store_id, $user_stats['user_zone']);		game_footer();		break;	case 'purchase':	case 'sell':		$shop->store_transaction($store_id, $item_id, $user->data['user_id'], $action);		break;	default:		game_header('Twilight War: Online - Market Isle');		$shop->build_shops($user_stats['user_zone']);		game_footer();		break;}?>