Source

tools / inc / main.php

Full commit
<?php
class Main extends F3instance {
	function home() {
		$this->set('title','Tools');
		$this->set('caption','Useful Online tools.');
		$this->set('notes','Useful Online tools that I have written/compiled over years. The code is <a href="https://bitbucket.org/thejeshgn/tools/overview">available</a> as a mercurial repository. You are welcome to fork and contribute. This project uses a lot of external javascript libraries. <a href="'.$this->get('base_app_url').'/thanks">Thanks to all those contributors</a>.');
		$this->set('LANGUAGE','en-US');
		$this->set('sub','sub_home.html');
		$out=$this->render('basic/layout.html');
		$this->set('sub_out_put',$out);
		$this->set('LANGUAGE','en-US');
		echo $this->render('basic/main.html');
	}
	
	function markdown() {
		$this->set('title','Markdown Editor');
		$this->set('caption','Markdown online editor.');
		$this->set('notes','Click on the eye for preview. Click on expand for full screen.');
		$this->set('LANGUAGE','en-US');
		$this->set('sub','sub_markdown.html');
		$out=$this->render('basic/layout.html');
		$this->set('sub_out_put',$out);
		$this->set('LANGUAGE','en-US');
		echo $this->render('basic/main.html');
	}	

	function thanks() {
		$this->set('title','Thank you');
		$this->set('notes','This wouldnt have been possible with out the following libraries.');
		$this->set('LANGUAGE','en-US');
		$this->set('sub','sub_thanks.html');
		$out=$this->render('basic/layout.html');
		$this->set('sub_out_put',$out);
		$this->set('LANGUAGE','en-US');
		echo $this->render('basic/main.html');
	}	
	function gpg() {
		$this->set('title','GPG');
		$this->set('caption','Markdown online editor.');
		$this->set('notes','GPG message encryption in JS. ');
		$this->set('LANGUAGE','en-US');
		$this->set('sub','sub_gpg.html');
		$out=$this->render('basic/layout.html');
		$this->set('sub_out_put',$out);
		$this->set('LANGUAGE','en-US');
		echo $this->render('basic/main.html');
	}			


	function webcam() {
		$this->set('title','WebCamera');
		$this->set('notes','Demonstrates a webcam implementation: capture an image, then insert it into a form.  This all happens on the client side, no server involved.');
		$this->set('LANGUAGE','en-US');
		$this->set('sub','sub_webcam.html');
		$out=$this->render('basic/layout.html');
		$this->set('sub_out_put',$out);
		$this->set('LANGUAGE','en-US');
		echo $this->render('basic/main.html');
	}

	function webirc() {
		$this->set('title','WebIRC');
		$this->set('notes','WebIRC chat window to chat on FreeNode');
		$this->set('LANGUAGE','en-US');
		$this->set('sub','sub_webirc.html');
		$out=$this->render('basic/layout.html');
		$this->set('sub_out_put',$out);
		$this->set('LANGUAGE','en-US');
		echo $this->render('basic/main.html');
	}

}
?>