Syntax highlighter activated

On 11-Oct-2006, in design and graphics, tips and tutorials, by Martin

Well, it goes like so . . . Thanks goes to Vijesh Mehta. Great visual enhancement. I think it’s cool. function show_photos_main() { $album = $_GET['album']; $photo = $_GET['photo']; $page = $_GET['page']; $tags = $_GET['tags']; $show = $_GET['show']; $output = ”; $continue = true; if (!is_null($show)) { if ($show == ‘tags’) { $output = $this->show_tags(); [...]

Well, it goes like so . . . Thanks goes to Vijesh Mehta. Great visual enhancement. I think it’s cool.

function show_photos_main() {
	$album = $_GET['album'];
	$photo = $_GET['photo'];
	$page = $_GET['page'];
	$tags = $_GET['tags'];
	$show = $_GET['show'];

	$output = '';
	$continue = true;
	if (!is_null($show)) {
		if ($show == 'tags') {
		$output = $this->show_tags();
		$continue = false;
		}
		elseif ($show == 'recent') {
		$tags = '';
		}
	}

	if ($continue) {
		// Show list of albums/photosets (none have been selected yet)
		if (is_null($album) && is_null($tags) && is_null($photo)) {
		$output = $this->show_albums($page);
		}
		// Show list of photos in the selected album/photoset
		elseif (!is_null($album) && is_null($photo)) {
		$output = $this->show_album_thumbnails($album, $page);
		}
		// Show list of photos of the selected tags
		elseif (!is_null($tags) && is_null($photo)) {
		$output = $this->show_tags_thumbnails($tags, $page);
		}
		// Show the selected photo in the slected album/photoset
		elseif ((!is_null($album) || !is_null($tags)) && !is_null($photo)) {
		$output = $this->show_photo($album, $tags, $photo, $page);
		}
	}

	if ($this->has_error) {
		$this->template->reset('error');
		$this->template->set('message', $this->error_detail);
		$output = $this->template->fetch();
	}

	return $output;
}
 

3 Responses to “Syntax highlighter activated”

  1. Martin says:

    Anti SPAM activated.

  2. Martin says:

    Beat this you nasty spammers you. The invi(n)sible anti spamming device ever puh!

  3. Martin says:

    Comments on my own website….tsss, what fun! :) Hehe

Leave a Reply

WordPress Blog

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

WordPress Themes