Skip to content
Snippets Groups Projects
Commit b37b9e81 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

Update WEBSITE and DOCs.

- Attempt to implement image rendering.
parent d67777c6
Branches
Tags
No related merge requests found
// AsciiDoc file
Screenshots
-----------
.Screenshot de 2007
sflimage::images/SflphonePOuetpoUEt.png[SFLphone qt3]
.Screenshot de SFLphone 0.7
sflimage::images/sflphone0.7.png[SFLphone 0.7]
#
# Used in Features.txt
#
......@@ -17,3 +19,17 @@ ifdef::backend-xhtml11[]
[sflink-inlinemacro]
<a href="index.php?f={target}.txt">{0?{0}}{0!{target}}</a>
endif::backend-xhtml11[]
#
# Image links (with "image:")
#
[sflimage-blockmacro]
<div class="image">
<a id="{id}"></a>
<div class="content">
<a class="image" href="{link#}">
<img src="index.php?i={target}" alt="{1={target}}"{1? title="{1}"}{width? width="{width}"}{height? height="{height}"}/>
{link#}</a>
</div>
<div class="image-title">{title}</div>
</div>
\ No newline at end of file
......@@ -9,14 +9,34 @@
require_once('sflphone.funcs.php');
// We've requested an image, fetch it, and send it.
if (defined($_REQUEST['i'])) {
$img = $_REQUEST['i'];
switch(strtolower(substr($img, -3))) {
case 'jpg':
header("Content-Type: image/jpeg");
break;
case 'png':
header("Content-Type: image/png");
break;
case 'gif':
header("Content-Type: image/gif");
break;
default:
break;
}
$module = '';
show_page($img);
}
$module = '';
// Default module: home
if (!$_REQUEST['l']) {
if (!$_REQUEST['mod']) {
$module = 'home';
} else {
$module = $_REQUEST['l'];
$module = $_REQUEST['mod'];
}
......
......@@ -20,7 +20,7 @@ require_once('config.inc.php');
/**
* Retrieve page, compile it if new, cache it.
*
* @param string File name (without the .txt) in the $PREFIX dir.
* @param string File name (including the extension) in the $PREFIX dir.
* @return HTML content
*/
function get_page($page) {
......@@ -51,7 +51,7 @@ function get_page($page) {
/**
* Show page
*
* @param string File name (without the .txt) in the $PREFIX dir.
* @param string File name (including the ext.) in the $PREFIX dir.
*/
function show_page($page) {
print get_page($page);
......@@ -170,7 +170,7 @@ function get_git_hash($file) {
$output = array();
$cmd = "cd $GIT_REPOS; git-ls-tree $USE_BRANCH \"".git_filename($file).".txt\"";
$cmd = "cd $GIT_REPOS; git-ls-tree $USE_BRANCH \"".git_filename($file)."\"";
$string = exec($cmd, $output);
......
<h1>Source code</h1>
<?php show_page('Git_Access'); ?>
<?php show_page('Git_Access.txt'); ?>
<h1>Download</h2>
<h1>Download</h1>
<?php show_page('Download'); ?>
<?php show_page('Download.txt'); ?>
<h1>Goals</h1>
<?php show_page('Goals'); ?>
<?php show_page('Goals.txt'); ?>
<?php show_page('News'); ?>
<?php show_page('News.txt'); ?>
<?php show_page('About'); ?>
<?php show_page('About.txt'); ?>
<h1>Get started</h2>
<h1>Get started</h1>
<p>
The project is ongoing well, but your help and contribution is needed to make this software even better!
......@@ -13,20 +13,20 @@ The project is ongoing well, but your help and contribution is needed to make th
<p>&nbsp;</p>
<p>
<img align="left" style="margin-right: 10px; margin-left: 5em;" src="images/info.png"/>
<a href="index.php?l=goals">Goals</a> - where do we want to be <br/>
<a href="index.php?l=features">Features</a> - where we are <br/>
<a href="index.php?l=screenshots">Screenshots</a> - we love them
<a href="index.php?mod=goals">Goals</a> - where do we want to be <br/>
<a href="index.php?mod=features">Features</a> - where we are <br/>
<a href="index.php?mod=screenshots">Screenshots</a> - we love them
</p>
<br style="clear: both;"/>
<p>
<img align="left" style="margin-right: 10px; margin-left: 5em;" src="images/fetch.png"/>
<a href="index.php?l=download">Download</a> - grab the latest source code<br/>
<a href="index.php?l=build">Build</a> - build and installation instructions <br/>
<a href="index.php?mod=download">Download</a> - grab the latest source code<br/>
<a href="index.php?mod=build">Build</a> - build and installation instructions <br/>
</p>
<br style="clear: both;"/>
<p>
<img align="left" style="margin-right: 10px; margin-left: 5em;" src="images/devel.png"/>
<a href="/mantis">File a bug</a> - report errors<br/>
<a href="index.php?l=discuss">Discuss</a> - Subscribe to a mailing list or contact us <br/>
<a href="index.php?l=devel">Develop</a> - Submit patches, work on the code, contribute
<a href="index.php?mod=discuss">Discuss</a> - Subscribe to a mailing list or contact us <br/>
<a href="index.php?mod=devel">Develop</a> - Submit patches, work on the code, contribute
</p>
\ No newline at end of file
<h1>Screenshots</h1>
<?php show_page('Screenshots.txt'); ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment