Changeset 247


Ignore:
Timestamp:
06/24/2011 11:49:41 AM (11 months ago)
Author:
sque
Message:

Add "community" concept on config and installation.
Improve home page, by adding a general welcome text (Closes #149).
Design and integrate favicon on frontend and installer.

Location:
trunk
Files:
5 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/config-sample/config.php

    r246 r247  
    1515                'url' => 'http://server.example.org/' 
    1616                ), 
    17          
     17        'community' => array( 
     18                'name' => 'Anonymous Wireless Community', 
     19                'short_name' => 'AWC' 
     20        ), 
    1821        'cookies' => array( 
    1922                'expire' => (60 * 60 * 24 * 30) 
  • trunk/globals/functions.php

    r246 r247  
    460460} 
    461461 
    462 ?> 
     462function format_version($version_array) { 
     463        $str = ''; 
     464        foreach ($version_array as $dig) { 
     465                $glue =  is_numeric($dig)? '.' : '-'; 
     466                $str .= empty($str)?$dig:$glue . $dig; 
     467        } 
     468        return $str;     
     469} 
  • trunk/globals/vars.php

    r187 r247  
    2323         
    2424        'info' => array( 
    25                 'version' => 0, 
     25                'version' => array(1, 0, 'rc1'), 
    2626                'min_template_version' => 0 
    2727                ) 
    28  
    2928); 
    30  
    31 ?> 
  • trunk/includes/main_footer.php

    r187 r247  
    2424        var $hide=FALSE; 
    2525 
    26         function footer() { 
    27          
    28         } 
    29          
    3026        function output() { 
    3127                global $db, $php_start, $main, $vars; 
     
    3329                $this->tpl['php_time'] = getmicrotime() - $php_start; 
    3430                $this->tpl['mysql_time'] = $db->total_time; 
     31                $this->tpl['wind_version'] = format_version($vars['info']['version']); 
    3532                if (isset($main->userdata->privileges['admin']) && $main->userdata->privileges['admin'] === TRUE && $vars['debug']['enabled'] == TRUE) { 
    3633                        $this->tpl['debug_mysql'] = ROOT_PATH."debug/mysql.php?".get_qs(); 
     
    4037         
    4138} 
    42  
    43 ?> 
  • trunk/includes/pages/startup/startup.php

    r143 r247  
    2929         
    3030        function output() { 
    31                 if (file_exists(ROOT_PATH."config/startup.html")) $this->tpl['startup_html'] = file_get_contents(ROOT_PATH."config/startup.html"); 
     31                global $vars; 
     32                if (file_exists(ROOT_PATH."config/startup.html")) 
     33                        $this->tpl['startup_html'] = file_get_contents(ROOT_PATH."config/startup.html"); 
     34                $this->tpl['wind_version'] = format_version($vars['info']['version']); 
     35                $this->tpl['community_name'] = $vars['community']['name']; 
     36                $this->tpl['community_short_name'] = $vars['community']['short_name']; 
    3237                return template($this->tpl, __FILE__); 
    3338        } 
    3439 
    3540} 
    36  
    37 ?> 
  • trunk/install/index.php

    r244 r247  
    3333        'deps' => 'Dependencies', 
    3434        'file_perms' => 'File permissions', 
     35        'community' => 'Community Information', 
    3536        'smarty' => 'Smarty configuration', 
    3637        'dbsetup' => 'Setup database', 
     
    5859        <title>WiND - Installation</title> 
    5960        <link rel="stylesheet" href="<?php echo surl('/../templates/basic/css/styles_packed.css')?>" > 
    60         <link rel="stylesheet" href="install.css">       
     61        <link rel="icon" type="image/png" href="<?php echo surl('/../templates/basic/images/favicon_32.png')?>" / > 
     62        <link rel="stylesheet" href="install.css"> 
     63                 
    6164        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>   
     65         
    6266</head> 
    6367<body> 
  • trunk/templates/basic/includes/html.tpl

    r190 r247  
    2525{$head} 
    2626<link href="{$css_dir}styles_packed.css" rel="stylesheet" type="text/css" /> 
     27<link rel="icon" type="image/png" href="templates/basic/images/favicon_32.png" / > 
    2728<script type="text/javascript" src="{$js_dir}overlib/overlib_packed.js"><!-- overLIB (c) Erik Bosrup --></script> 
    2829</head> 
  • trunk/templates/basic/includes/main_footer.tpl

    r239 r247  
    3030        </td> 
    3131        <td class="footer" align="right" width="33%"> 
    32                         Powered by:<br /><a href="http://wind.cube.gr/"><b>WiND - Wireless Nodes Database project</b></a><br /><br /> 
    33                 &copy; 2005-2011 <a href="http://wind.cube.gr/wiki/Team">WiND development team</a> 
     32                        Powered by: <a target="_blank" href="http://wind.cube.gr/"><b>WiND  v{$wind_version}</b></a><br /><br /> 
     33                &copy; 2005-2011 <a target="_blank" href="http://wind.cube.gr/wiki/Team">WiND development team</a> 
    3434        </td> 
    3535      </tr> 
  • trunk/templates/basic/includes/main_header.tpl

    r136 r247  
    2222      <tr> 
    2323        <td class="table-header-td-left"><img src="{$img_dir}main_logo.png" alt="WiND Logo" /></td> 
    24 {if $mylogo}        <td class="table-header-td-right"><img src="{$mylogo_dir}mylogo.png" alt="{$lang.site_title}" /></td>{/if} 
     24{if $mylogo}<td class="table-header-td-right"><img src="{$mylogo_dir}mylogo.png" alt="{$lang.site_title}" /></td>{/if} 
    2525      </tr> 
    2626</table> 
  • trunk/templates/basic/includes/pages/startup/startup.tpl

    r136 r247  
    2323{$startup_html} 
    2424{else} 
    25 <center> 
     25<div style="padding: 30px; font-size: 12px;"> 
     26<h1>{$community_name}</h1> 
     27<p>Welcome at {$community_name}. Here you can find information about <a href="?page=nodes">registered nodes</a> 
     28of {$community_short_name} and <a href="?page=services">services</a> running on the network. 
     29If you want want to participate you can always try to <a href="?page=users&user=add">register</a>. For registered 
     30users, there is support for private messages. 
     31</p> 
     32 
     33<h3>Registration</h3> 
     34 
    2635<p> 
    27 <font size="5"><strong>WiND - Wireless Nodes Database</strong></font> 
     36To create a new account, visit <a href="?page=users&user=add">registration page</a>. To complete the registration you have 
     37to confirm your email. If, for any reason you didn't get any email, you can request to 
     38<a href="?page=users&action=restore">resend the email</a>.  
     39</p> 
     40 
     41<h3>Add Your Node</h3> 
     42<p> 
     43To create a new node you must be a registered user. After you have logged on on the system you 
     44can request to <a href="?page=mynodes&action=add">add a node</a>. 
     45</p> 
     46 
     47<h3>Declare links</h3> 
     48<p> 
     49For each node you can declare its links with other <strong>existing</strong> nodes. 
     50<ul> 
     51<li>If you are a <strong>client</strong> node, declare only one  
     52        link with the access point that you have been connected at.</li> 
     53<li>If you have created a <strong>backbone link</strong>, declare it with as many information as possible. 
     54        For complete link, the other node must add also link information.</li> 
     55<li>If you own an access point, declare it so that clients can declare their links at you.</li> 
     56</ul>   
     57</p> 
     58 
     59<h3>Managing your Nodes</h3> 
     60<p> 
     61For any node you can update its information by visiting its page. Through your node page you can also interract 
     62with the Hostmaster team, to request IP Ranges, DNS zones and nameservers. 
     63</p> 
    2864<br /> 
    29 <br /> 
    30 <strong>Warning</strong>: this is an SVN snapshot.<br /> 
    31 As such, it's still under heavy development and you 
    32 should expect it to break and/or lose data.<br /> 
    33 </p> 
    34 </center> 
     65<hr/> 
     66<em>Try to update your nodes, with as much as possible <strong>valid</strong> information. 
     67If you see invalid data on foreign nodes don't hesitate to contact them and request to update/change their public information.</em> 
     68 
     69</div> 
    3570{/if} 
Note: See TracChangeset for help on using the changeset viewer.