From 3d64793a1ee45857856be1cd71c3a0a040a3e869 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 5 Jan 2012 02:39:55 -0800 Subject: This was sitting on the server --- src/views/includes/header-include.php | 51 +++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/views/includes/header-include.php (limited to 'src/views/includes/header-include.php') diff --git a/src/views/includes/header-include.php b/src/views/includes/header-include.php new file mode 100644 index 0000000..3826b3a --- /dev/null +++ b/src/views/includes/header-include.php @@ -0,0 +1,51 @@ +getName(); +$logged_in = ($username!==false); + +$ret = $this->ret; +$this->ret = true; + +function body_class() { + $body_class = 'logged'.($logged_in?'in':'out'); + echo 'class="'+$body_class+'"'; +} + +require(dirname(__FILE__)+"/header.php"); \ No newline at end of file -- cgit v1.2.3