Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2007
    Posts
    71
    Tokens
    0

    Default request.php takes ages to load

    hi everyone i installed radi panel and everything is going smooth thanks to Calvin and jack for the help , the only problem i am having is the request page takes ages to load where other pages such as timetable.php , events.php etc work fine, any reason why this hapning thank you

  2. #2
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    No problem

    Is there any data on it yet? (Bookings etc)

  3. #3
    Join Date
    Sep 2007
    Posts
    71
    Tokens
    0

    Default

    there is nothing on it and its not the page where you recieve request , its the page where users send request from www.mydomain.com/_frontend/requests.php

  4. #4
    Join Date
    Oct 2007
    Location
    Luton, England
    Posts
    1,548
    Tokens
    388
    Habbo
    DeejayMachoo

    Latest Awards:

    Default

    I dont have this put paste it in
    Code:
    here
    tags and ill take a look


  5. #5
    Join Date
    Sep 2007
    Posts
    71
    Tokens
    0

    Default

    HTML Code:
    <?php
    	require_once( "../_inc/glob.php" );
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    
    	<head>
    
    		<title>radiPanel Request Line</title>
    
    		<style type="text/css" media="screen">
    
    			body {
    
    				background: #FFFFFF;
    				padding: 0;
    				margin: 0;
    
    			}
    
    			body, input, select, textarea {
    
    				font-family: Verdana, Tahoma, Arial;
    				font-size: 10px;
    				color: #333;
    
    			}
    
    			form {
    	
    				padding: 0;
    				margin: 0;
    	
    			}
    
    			.wrapper {
    
    				background-color: #fcfcfc;
    				width: 300px;
    				margin: auto;
    				padding: 5px;
    				margin-top: 15px;
    
    			}
    
    			.title {
    
    				padding: 5px;	
    				margin-bottom: 5px;
    				font-size: 14px;
    				font-weight: bold;
    				background-color: #eee;
    				color: #444;
    
    			}
    
    			.good, .bad {
    			
    				padding: 5px;	
    				margin-bottom: 5px;
    			
    			}
    			
    			.good strong, .bad strong {
    			
    				font-size: 12px;
    				font-weight: bold;
    			
    			}
    			
    			.good {
    	
    				background-color: #d9ffcf;
    				border-color: #ade5a3;
    				color: #1b801b;
    	
    			}
    	
    			.bad {
    
    	
    				background-color: #ffcfcf;
    				border-color: #e5a3a3;
    				color: #801b1b;
    	
    			}
    
    			input, select, textarea {
    
    				border: 1px #e0e0e0 solid;
    				border-bottom-width: 2px;
    				padding: 3px;
    
    			}
    
    			input {
    		
    				width: 170px;
    		
    			}
    			
    			input.button {
    			
    				width: auto;
    				cursor: pointer;
    				background: #eee;
    			
    			}
    			
    			select {
    			
    				width: 176px;
    			
    			}
    			
    			textarea {
    			
    				width: 288px;
    			
    			}
    			
    			label {
    			
    				display: block;
    				padding: 3px;
    			
    			}
    			
    		</style>
    
    	</head>
    
    	<body>
    
    		<div class="wrapper">
    
    			<?php
    				
    				if( $_POST['submit'] ) {
    					
    					try {
    					
    						$habbo   = $core->clean( $_POST['habbo'] );
    						$type    = $core->clean( $_POST['type'] );
    						$dj      = $core->clean( $_POST['dj'] );
    						$request = $core->clean( $_POST['request'] );
    						$ip      = $_SERVER['REMOTE_ADDR'];
    						$time    = time();
    	
    						if( !$habbo or !$type or !$dj or !$request or !is_numeric( $dj ) or !is_numeric( $type ) ) {
    	
    							throw new Exception( "All fields are required" );
    	
    						}
    						else {
    						
    							$db->query( "INSERT INTO requests VALUES (NULL, '{$type}', '{$dj}', '{$habbo}', '{$request}', '{$time}', '{$ip}');" );
    
    							echo "<div class=\"good\">";
    							echo "<strong>Success</strong>";
    							echo "<br />";
    							echo "Request sent!";
    							echo "</div>";
    
    						}
    					
    					}
    					catch( Exception $e ) {
    					
    						echo "<div class=\"bad\">";
    						echo "<strong>Error</strong>";
    						echo "<br />";
    						echo $e->getMessage();
    						echo "</div>";
    					
    					}
    					
    				}
    				
    			?>
    
    			<form action="" method="post">
    			
    				<label for="habbo">Habbo name:</label>
    				<input type="text" name="habbo" id="habbo" maxlength="255" />
    				
    				<br /><br />
    				
    				<label for="type">Message type:</label>
    				<select name="type" id="type">
    				
    					<?php
    						
    						$query = $db->query( "SELECT * FROM request_types" );
    						
    						while( $array = $db->assoc( $query ) ) {
    						
    					?>
    					
    					<option value="<?php echo $array['id']; ?>">
    						<?php echo $array['name']; ?>
    					</option>
    					
    					
    					<?php
    						
    						}
    						
    					?>
    				
    				</select>
    			
    				<br /><br />
    				
    				<label for="dj">DJ:</label>
    				<select name="dj" id="dj">
    
    					<?php
    
    						$query  = $db->query( "SELECT * FROM connection_info ORDER BY id DESC LIMIT 1" );
    						$array  = $db->assoc( $query );
    						
    						$info   = $core->radioInfo( "http://{$array['host']}:{$array['port']}" );
    
    						$query2 = $db->query( "SELECT * FROM users" );
    
    						while( $array2 = $db->assoc( $query2 ) ) {
    
    					?>
    
    					<option<?php if( preg_match( "/{$array2['username']}/", $info['streamtitle'] ) ) { ?> selected="selected"<?php } ?> value="<?php echo $array2['id']; ?>">
    						DJ <?php echo $array2['username']; ?>
    					</option>
    
    
    					<?php
    
    						}
    
    					?>
    
    				</select>
    				
    				<br /><br />
    				
    				<label for="request">Request:</label>
    				<textarea name="request" id="request" rows="5"></textarea>
    				
    				<br /><br />
    				
    				<input class="button" type="submit" name="submit" value="Submit" />
    				
    			</form>
    
    		</div>
    
    	</body>
    
    </html>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •