function run()
    {
        ?>
			<p><strong>Reason CMS</strong> is an attempt to create a broad and general way of managing database-driven websites.</p>
			<p>Its purpose is to make a user-friendly editing environment which is as extensible as possible.</p>
			<p>If you have want to learn more about Reason CMS, please visit the <a href="http://reasoncms.org/">Reason CMS website</a>.</p>
		<?php 
        echo '<p class="smallText">Current Version: ' . reason_get_version() . '</p>';
    }
Example #2
0
 function init()
 {
     $sites = $this->admin_page->get_sites();
     if (empty($this->admin_page->request['cur_module']) && empty($this->admin_page->site_id)) {
         if (count($sites) == 1) {
             foreach ($sites as $site) {
                 $link = 'index.php?site_id=' . $site->id();
             }
             if (!empty($this->admin_page->user_id)) {
                 $link .= '&user_id=' . $this->admin_page->user_id;
             }
             header('Location: ' . $link);
             die;
         }
     }
     $this->admin_page->title = 'Welcome to Reason ' . reason_get_version() . '!';
 }
Example #3
0
 function banner()
 {
     echo '<table class="banner">' . "\n";
     echo '<tr>' . "\n";
     echo '<td class="crumbs"> ' . REASON_ADMIN_LOGO_MARKUP;
     echo '<span>';
     echo '<strong> :: <a href="' . $this->make_link(array('cur_module' => 'about_reason')) . '" class="bannerLink">Reason ' . reason_get_version() . '</a></strong>';
     if ($this->site_id != id_of('master_admin')) {
         $sites = $this->get_sites();
         if (isset($sites[id_of('master_admin')])) {
             echo ' :: <a href="' . carl_construct_link(array('site_id' => id_of('master_admin')), array('user_id')) . '">Master Admin</a>';
         }
     }
     echo '</span></td>' . "\n";
     echo '<td class="id">';
     $this->show_user();
     echo '</td>' . "\n";
     echo '</tr>' . "\n";
     echo '</table>' . "\n";
 }