display->loadSkin( "services" ); class services extends binBase { function services() { global $bin; $this->construct(); $bin->display->title = "Services"; if ( isset( $bin->URL[1] ) ) { if ( $bin->URL[1] == 'get' && isset( $bin->URL[2] ) ) $this->getData( $bin->URL[2] ); else $this->showService( $bin->URL[1] ); } else $this->output .= $bin->skin->services->page_nonxmlhttp(); } function showService( $section ) { global $bin, $db; $service = $db->mysql->fetch( $db->mysql->query( sprintf( $this->query['get'], $section ) ) ); if ( !isset( $service->id ) ) $this->output .= $bin->skin->services->service( '
Invalid Service Name.
', 'grey' ); else { if ( $service->name == 'php' ) $colour = 'red'; elseif ( $service->name == 'mysql' ) $colour = 'green'; elseif ( $service->name == 'scripts' ) $colour = 'blue'; $this->output .= $bin->skin->services->service( stripslashes( $service->description ), $colour ); } } function getData( $section ) { global $bin, $db; $service = $db->mysql->fetch( $db->mysql->query( sprintf( $this->query['get'], $section ) ) ); if ( !isset( $service->id ) ) echo '
Invalid Service Name.
'; else echo stripslashes( $service->description ); define( "SUPPRESS", 1 ); } } ?>