Code Search for Developers
 
 
  

subroutines.php from ECP (EliteCore Project) at Krugle


Show subroutines.php syntax highlighted

<?php
class LoginModule extends Module {
	public function onDefault() {
		if (Session :: isValid()) {
			$this->addContent('logged.php');
		} else {
			$this->addContent('guest.php');
			try {
				$users = ModulesManager :: LoadModule("users");
				$link = $users->object->getRegistrationLink();
				$this->registerVariable($link, "link");
			} catch (NoModuleException $e) {
				$this->registerVariable("", "link");
			}
		}
	}
}
?>



See more files for this project here

ECP (EliteCore Project)

EliteCore Project is a PHP5.1/Javascript/AJAX/XHTML/CSS framework for creating WEB 2.0 applications and services.The basic open-source instalation can be also used as an interactive personal page or BLOG.This project uses the latest features available.

Project homepage: http://sourceforge.net/projects/elitecore
Programming language(s): JavaScript,PHP,XML
License: cpl

  blocks/
    myinfo.php
  language/
    czech.xml
    english.xml
  templates/
    default/
      block_myinfo.php
      guest.php
      logged.php
    inline/
      guest.php
      logged.php
    tableless/
      guest.php
      logged.php
  config.xml
  subroutines.php