Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamStam committed Apr 27, 2011
0 parents commit ca05ce9
Show file tree
Hide file tree
Showing 492 changed files with 78,188 additions and 0 deletions.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/FatFree-Boilerplate.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/cssxfire.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

258 changes: 258 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions controllers/main.php
@@ -0,0 +1,35 @@
<?php

class Main {

function index() {
$tmpl = new template("template.html");
$tmpl->page = "index.html";
$tmpl->js = "page_index.js";
$tmpl->heading = "HOME";
$tmpl->text = "yo ho.. <h1>whats happening?</h1> notice how the template is text|safe. its so that html is rendered";
$tmplOutput = $tmpl->load();
echo $tmplOutput;
}

function about() {
$tmpl = new template("template.html");
$tmpl->page = "about.html";
$tmpl->js = "page_about.js";
$tmpl->heading = "About";
$tmpl->text = "hmm about text stuff";
$tmplOutput = $tmpl->load();
echo $tmplOutput;
}

function contact() {
$tmpl = new template("template.html");
$tmpl->page = "contact.html";
$tmpl->heading = "Contact";
$tmpl->text = "if you havent figured it out.. this is how you set tmpl variables";
$tmplOutput = $tmpl->load();
echo $tmplOutput;
}


}
13 changes: 13 additions & 0 deletions gui/_loggedin.html
@@ -0,0 +1,13 @@
welcome back - {{ name }} <hr>

{% if validated == "1" %}
| <a href="/home">dashboard</a>
{% else %}
Please validate your email address<br>
<a href="/register/validate">send validate code</a>

{% endif %}

<a href="/logout">logout</a>
<hr>
{{ msg }}

0 comments on commit ca05ce9

Please sign in to comment.