Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from vboctor/modern_site
Modern site for mantisbt.org
- Loading branch information
Showing
112 changed files
with
10,564 additions
and
972 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,74 @@ | ||
<?php include( "top.php" ); ?> | ||
|
||
<h3>MantisTouch</h3> | ||
<p><a href="http://www.mantistouch.org">MantisTouch</a> MantisTouch was developed by Victor Boctor to provide mobility to MantisBT. As a web app, MantisTouch provides a mobile optimized user interface for iPhone, Android, and Windows Phone. MantisTouch uses web services to access the bugtracking data allowing it to be installed on the same or a different server than MantisBT.</p> | ||
<table border="0" width="100%"> | ||
<tr> | ||
<td align="center" valign="top" style="text-align:center;"><a href="http://www.mantistouch.org"><img alt="Login Page" src="images/mt_login_page.png" height="300" width="200" border="1" /></a></td> | ||
<td align="center" valign="top"><a href="http://www.mantistouch.org"><img alt="Dashboard Page" src="images/mt_dashboard_page.png" height="300" width="200" border="1" /></a></td> | ||
<td align="center" valign="top"><a href="http://www.mantistouch.org"><img alt="Issues Page" src="images/mt_issues_page.png" height="300" width="200" border="1" /></a></td> | ||
</tr> | ||
</table> | ||
<?php | ||
$t_sub_title = "MantisBT Add-ons"; | ||
include( "top.php" ); | ||
?> | ||
|
||
<div class="row show-grid clear-both"> | ||
<div class="col-sm-12 col-md-12"> | ||
<h1>Add Ons</h1> | ||
</div> | ||
</div> | ||
<br> | ||
|
||
<div class="row show-grid clear-both"> | ||
<div class="col-sm-7 col-md-8"> | ||
<h2><b>MantisTouch</b><small>| MantisBT Gone Mobile!</small></h2> | ||
<p> | ||
<span class="lead"> | ||
MantisTouch provides a mobile optimized user | ||
interface for iPhone, Android, and Windows Phone. | ||
</span> | ||
</p> | ||
<p> | ||
MantisTouch is developed and maintained by Victor Boctor. | ||
Victor is a member of MantisBT core team since 2000. | ||
As a web app, MantisTouch provides a mobile optimized experience for all users of your MantisBT instance. | ||
</p> | ||
</div> | ||
<div class="col-md-1"></div> | ||
<div class="col-sm-5 col-md-3"> | ||
<a class="btn btn-warning" href="http://www.mantistouch.org" onclick="ga('send', 'event', 'Addons', 'Learn more about MantisTouch');">Learn more about MantisTouch</a> | ||
</div> | ||
</div> | ||
|
||
<br> | ||
|
||
<div class="row show-grid clear-both"> | ||
<div class="col-sm-7 col-md-8"> | ||
<a href="http://www.mantistouch.org" onclick="ga('send', 'event', 'Addons', 'MantisTouch Image1');"> | ||
<img class="img-rounded" title="Login Page on Smart Phone" alt="Login Page" src="images/mt_login_page.png" height="300" width="200" border="1" /> | ||
</a> | ||
<a href="http://www.mantistouch.org" onclick="ga('send', 'event', 'Addons', 'MantisTouch Image2');"> | ||
<img class="img-rounded" title="Dashboard Page on Smart Phone" alt="Dashboard Page" src="images/mt_dashboard_page.png" height="300" width="200" border="1" /> | ||
</a> | ||
<a href="http://www.mantistouch.org" onclick="ga('send', 'event', 'Addons', 'MantisTouch Image3');"> | ||
<img class="img-rounded" title="Issues Page on Smart Phone" alt="Issues Page" src="images/mt_issues_page.png" height="300" width="200" border="1" /> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<br> | ||
<hr> | ||
|
||
<div class="row show-grid clear-both"> | ||
<div class="col-sm-7 col-md-8"> | ||
<h2><b>Plugins</b></h2> | ||
<p> | ||
MantisBT plugin system allows extension of MantisBT through both officially maintained and third party plug-ins. | ||
Browse the plugin directory to learn more about each plugin. | ||
</p> | ||
</div> | ||
<div class="col-md-1"></div> | ||
<div class="col-sm-5 col-md-3"> | ||
<br> | ||
<a class="btn btn-warning" href="http://www.mantisbt.org/wiki/doku.php/mantisbt:mantis_plugins" onclick="ga('send', 'event', 'Addons', 'Browse Plugins Directory');"> | ||
Browse Plugins Directory</a> | ||
<div class="clear-both"></div> | ||
<br> | ||
<a class="btn btn-warning" href="https://github.com/mantisbt-plugins" onclick="ga('send', 'event', 'Addons', 'Browse Plugins on GitHub');"> | ||
Browse Plugins on GitHub</a> | ||
</div> | ||
</div> | ||
|
||
<?php | ||
include_once('bot.php'); | ||
include_once('bot.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?php | ||
|
||
function getBrowser() | ||
{ | ||
$u_agent = $_SERVER['HTTP_USER_AGENT']; | ||
$bname = 'Unknown'; | ||
$platform = 'Unknown'; | ||
$version= ""; | ||
|
||
//First get the platform? | ||
if (preg_match('/linux/i', $u_agent)) { | ||
$platform = 'linux'; | ||
} | ||
elseif (preg_match('/macintosh|mac os x/i', $u_agent)) { | ||
$platform = 'mac'; | ||
} | ||
elseif (preg_match('/windows|win32/i', $u_agent)) { | ||
$platform = 'windows'; | ||
} | ||
|
||
// Next get the name of the useragent yes seperately and for good reason | ||
if(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent)) | ||
{ | ||
$bname = 'Internet Explorer'; | ||
$ub = "MSIE"; | ||
} | ||
elseif(preg_match('/Firefox/i',$u_agent)) | ||
{ | ||
$bname = 'Mozilla Firefox'; | ||
$ub = "Firefox"; | ||
} | ||
elseif(preg_match('/Chrome/i',$u_agent)) | ||
{ | ||
$bname = 'Google Chrome'; | ||
$ub = "Chrome"; | ||
} | ||
elseif(preg_match('/Safari/i',$u_agent)) | ||
{ | ||
$bname = 'Apple Safari'; | ||
$ub = "Safari"; | ||
} | ||
elseif(preg_match('/Opera/i',$u_agent)) | ||
{ | ||
$bname = 'Opera'; | ||
$ub = "Opera"; | ||
} | ||
elseif(preg_match('/Netscape/i',$u_agent)) | ||
{ | ||
$bname = 'Netscape'; | ||
$ub = "Netscape"; | ||
} | ||
|
||
// finally get the correct version number | ||
$known = array('Version', $ub, 'other'); | ||
$pattern = '#(?<browser>' . join('|', $known) . | ||
')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#'; | ||
if (!preg_match_all($pattern, $u_agent, $matches)) { | ||
// we have no matching number just continue | ||
} | ||
|
||
// see how many we have | ||
$i = count($matches['browser']); | ||
if ($i != 1) { | ||
//we will have two since we are not using 'other' argument yet | ||
//see if version is before or after the name | ||
if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){ | ||
$version= $matches['version'][0]; | ||
} | ||
else { | ||
$version= $matches['version'][1]; | ||
} | ||
} | ||
else { | ||
$version= $matches['version'][0]; | ||
} | ||
|
||
// check if we have a number | ||
if ($version==null || $version=="") {$version="?";} | ||
|
||
return array( | ||
'userAgent' => $u_agent, | ||
'name' => $bname, | ||
'version' => $version, | ||
'platform' => $platform, | ||
'pattern' => $pattern | ||
); | ||
} | ||
|
||
function is_unsupported_browser() | ||
{ | ||
$ua = getBrowser(); | ||
if ( 'Internet Explorer' == $ua['name'] && | ||
( '8.0' == $ua['version'] || '7.0' == $ua['version'] || '6.0' == $ua['version'] ) ) { | ||
|
||
return true; | ||
} | ||
|
||
return false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.