Tex0gen
Members
-
Joined
-
Last visited
Solutions
-
Tex0gen's post in TideSDK Hiding php database passwords was marked as the answerJust letting you know, i fixed this issue.
I re-packed the .exe and dependancies into a new .exe so... app.exe runs the_real_app.exe within itself. (Like a virtualbox). That way, all dependant folders are hidden.
-
Tex0gen's post in Lithium Framework (PHP) Session based links was marked as the answerSolved, for future ref, heres how i did it.
In Layouts default.html.php:
<?php if($this->user->connected()){ echo '<a href="/lithium/lithgit/logout">Logout</a>'; } else { echo '<a href="/lithium/lithgit/login">Login</a>'; } ?> And then created a Helper called user.php and added the following:
<?php namespace app\extensions\helper; use lithium\security\Auth; class User extends \lithium\template\helper { public function connected() { return Auth::check('default', $this->_context->_config['request']); } }
Thanks guys.