Commit 96f3c73b authored by Romain Loth's avatar Romain Loth

move all legacy js, css and img into static for faster serving (todo same with...

move all legacy js, css and img into static for faster serving (todo same with tinawebJS subtree and explorerlibs)
parent 2903f3fc
......@@ -6,8 +6,8 @@
echo '
<body>';
include ("analytics.php");
echo ' <script type="text/javascript" src="js/jquery/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/whoswho.js"></script>
echo ' <script type="text/javascript" src="static/js/jquery/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="static/js/whoswho.js"></script>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
......@@ -88,7 +88,7 @@ foreach ($scholars as $scholar) {
else {
if (count($scholars) < 2000) {
$im_id = floor(rand(0, 11));
$content .= '<img style="margin: 7px 10px 10px 0px" src="img/' . $im_id . '.png" width="' . $imsize . 'px" align="left">';
$content .= '<img style="margin: 7px 10px 10px 0px" src="static/img/' . $im_id . '.png" width="' . $imsize . 'px" align="left">';
}
}
......@@ -206,7 +206,7 @@ $content .= '</div>';
$content .= '</div>';
$content .= '
<center><img src="img/bar.png"></center>';
<center><img src="static/img/bar.png"></center>';
$content .= '<br/>';
$content .= '<br/>';
// fin du profil
......
......@@ -5,59 +5,52 @@
<title>Complex Systems Community Explorer</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link type="text/css" href="css/brownian-motion/jquery-ui-1.8.16.custom.css">
<!-- <link rel="stylesheet/less" type="text/css" href="less/bootstrap.less">
<script src="js/less-1.1.5.min.js" type="text/javascript"></script>
-->
<link href="css/bootstrap_index.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
<!-- Les styles -->
<link type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link type="text/css" href="static/css/bootstrap.css" rel="stylesheet">
<link type="text/css" href="static/css/bootstrap_index.css" rel="stylesheet">
<link type="text/css" href="static/css/brownian-motion/jquery-ui-1.8.16.custom.css" rel="stylesheet">
<link type="text/css" href="static/css/whoswho.css" rel="stylesheet">
<!-- TODO test if each is really needed -->
<!-- TODO group under a static dir for serving -->
<!-- TODO in the future update versions -->
<script type="text/javascript" src="js/jquery/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="js/bootstrap/bootstrap-dropdown-fade.js"></script>
<script type="text/javascript" src="js/misc/underscore.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery.highlight-3.js"></script>
<script type="text/javascript" src="js/jquery.vticker-min.js"></script>
<script type="text/javascript" src="js/misc/json2.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<link href="css/whoswho.css" rel="stylesheet" type="text/css">
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
<script type="text/javascript">
$(function(){
$('#news-container').vTicker({
speed: 700,
pause: 6000,
animation: 'fade',
mousePause: false,
showItems: 1
});
});
<!-- TODO upgrade versions as per comments -->
<script type="text/javascript" src="static/js/jquery/jquery-1.7.min.js"></script>
<script type="text/javascript" src="static/js/jquery-ui-1.8.16.custom.min.js"></script>
<!-- upgraded available files
<script type="text/javascript" src="static/js/jquery/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="static/js/jquery-ui-1.12.1/jquery-ui.min.js"></script>
-->
<script type="text/javascript" src="static/js/bootstrap/bootstrap-dropdown-fade.js"></script>
<script type="text/javascript" src="static/js/misc/underscore.min.js"></script>
<script type="text/javascript" src="static/js/jquery/jquery.highlight-3.js"></script>
<script type="text/javascript" src="static/js/jquery.vticker-min.js"></script>
<script type="text/javascript" src="static/js/misc/json2.js"></script>
<script type="text/javascript" src="static/js/utils.js"></script>
<script type="text/javascript">
$(function(){
$('#news-container').vTicker({
speed: 700,
pause: 6000,
animation: 'fade',
mousePause: false,
showItems: 1
});
});
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30062222-1']);
_gaq.push(['_setDomainName', 'csregistry.org']);
_gaq.push(['_trackPageview']);
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-30062222-1']);
_gaq.push(['_setDomainName', 'csregistry.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</script>
</head>
<body>
<script>
......@@ -84,7 +77,7 @@ $(function(){
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script type="text/javascript" src="js/whoswho.js"/></script>
<script type="text/javascript" src="static/js/whoswho.js"/></script>
<div class="topbar">
<div class="topbar-inner">
<div class="container-fluid">
......@@ -179,7 +172,7 @@ $(function(){
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<div id="loading" style="padding-left:-175px; margin-left: 27%;">
<img src="css/loading.gif" style="border: 0px; opacity: 0.05; " />
<img src="static/css/loading.gif" style="border: 0px; opacity: 0.05; " />
</div>
<div id="welcome">
<h2>Welcome to the complex systems community explorer</h2>
......@@ -196,7 +189,7 @@ $(function(){
<!--<form>-->
<input type="text" id="searchname" class="large name" placeholder="Your last name" />
<input type="hidden" id="searchlogin" value=""/>
<img src="css/branding/big_arrow.png" alt="" style="border: none; margin-bottom : -19px;" title="" />
<img src="static/css/branding/big_arrow.png" alt="" style="border: none; margin-bottom : -19px;" title="" />
<button id="print2" class="btn btn-small btn-primary">
DIRECTORY
</button>
......@@ -249,11 +242,7 @@ integration :</a> announce new jobs and find people looking for a job</li>
<br/><center>
<iframe src="http://player.vimeo.com/video/38383946" width="300" height="170" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></center>
<br/>
<br/>
<br/><br/>
</div>
</div>
......@@ -268,10 +257,10 @@ integration :</a> announce new jobs and find people looking for a job</li>
<br/>
Directory maintained by the <a href="http://cssociety.org" target="blank">Complex Systems Society</a> and the <a href="http://iscpif.fr" target="blank">Complex Systems Institute of Paris Ile-de-France</a>.
<br/>
<a href="http://cssociety.org" target="_BLANK"><img src="img/css.png" alt="http://cssociety.org" style="border: none; margin-bottom : -6px;" title="isc-pif" height="25px" /></a><a href="http://iscpif.fr"><img src="css/branding/iscpif_short.png" alt="iscpif.fr" style="border: none; margin-bottom : -6px;" title="isc-pif" /></a>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="blank"><img alt="Creative Commons License" style="border: none; margin-bottom : -6px;" src="img/cc.png" height="20px"/></a> - <a href="http://moma.csregistry.org" target="_BLANK"> MOMA</a> - <a href="http://iscpif.fr" target="_BLANK">ISC-PIF</a> - <a href="http://www.cnrs.fr/fr/recherche/index.htm" target="_BLANK">CNRS</a>.
<a href="http://cssociety.org" target="_BLANK"><img src="static/img/css.png" alt="http://cssociety.org" style="border: none; margin-bottom : -6px;" title="isc-pif" height="25px" /></a><a href="http://iscpif.fr"><img src="static/css/branding/iscpif_short.png" alt="iscpif.fr" style="border: none; margin-bottom : -6px;" title="isc-pif" /></a>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="blank"><img alt="Creative Commons License" style="border: none; margin-bottom : -6px;" src="static/img/cc.png" height="20px"/></a> - <a href="http://moma.csregistry.org" target="_BLANK"> MOMA</a> - <a href="http://iscpif.fr" target="_BLANK">ISC-PIF</a> - <a href="http://www.cnrs.fr/fr/recherche/index.htm" target="_BLANK">CNRS</a>.
</center>
</footer>
</div>
</body>
</body>
</html>
This diff is collapsed.
......@@ -6,7 +6,7 @@
echo '
<body>';
include ("analytics.php");
echo ' <script type="text/javascript" src="js/whoswho.js"></script>
echo ' <script type="text/javascript" src="static/js/whoswho.js"></script>
<div class="container-fluid">
<!-- Main hero unit for a primary marketing message or call to action -->
......@@ -136,7 +136,7 @@ $content .= '</div>';
$content .= '</div>';
$content .= '
<center><img src="img/bar.png"></center>';
<center><img src="static/img/bar.png"></center>';
$content .= '<br/>';
$content .= '<br/>';
// fin du profil
......
......@@ -113,7 +113,7 @@ $content .= '</div>';
$content .= '</div>';
$content .= '
<center><img src="img/bar.png"></center>';
<center><img src="static/img/bar.png"></center>';
$content .= '<br/>';
$content .= '<br/>';
// fin du profil
......
This diff is collapsed.
......@@ -47,25 +47,25 @@ function normalize_country($value) {
}
function sanitize_input($value) {
//$value = mysql_real_escape_string($value);
//$value = mysql_real_escape_string($value);
//the use of addslashes() for string escaping in MySQL queries can lead to SQL injection
//through the abuse of multibyte character sets. In his example he relies on addslashes()
//to convert an invalid multibyte sequence into a valid one, which also has an embedded ' that
//is not escaped. And in an ironic twist, the function intended to protect against SQL injection
// is used to actually trigger it.
//the use of addslashes() for string escaping in MySQL queries can lead to SQL injection
//through the abuse of multibyte character sets. In his example he relies on addslashes()
//to convert an invalid multibyte sequence into a valid one, which also has an embedded ' that
//is not escaped. And in an ironic twist, the function intended to protect against SQL injection
// is used to actually trigger it.
// lame security
// lame security
$value=str_replace('drop','', $value);
$value=str_replace('select','', $value);
$value=str_replace('update','', $value);
$value=str_replace('delete','', $value);
$value = addcslashes($value, '%_');
$value = trim($value);
$value = htmlspecialchars($value);
$value = addcslashes($value, '%_');
$value = trim($value);
$value = htmlspecialchars($value);
return $value;
return $value;
}
?>
......@@ -101,7 +101,7 @@ foreach ($organiz as $orga) {
$content .= '</div>';
$content .= '
<center><img src="img/bar.png"></center>';
<center><img src="static/img/bar.png"></center>';
$content .= '<br/>';
$content .= '<br/>';
// fin du profil
......
This diff is collapsed.
This diff is collapsed.
......@@ -11,32 +11,37 @@ $meta = '<!DOCTYPE html>
<title>Complex Systems Scholars</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="css/bootstrap_directory.css" rel="stylesheet">
<link type="text/css" href="css/brownian-motion/jquery-ui-1.8.16.custom.css">
<link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="js/bootstrap/bootstrap-dropdown-fade.js"></script>
<script type="text/javascript" src="js/misc/underscore.min.js"></script>
<script type="text/javascript" src="js/jquery/jquery.highlight-3.js"></script>
<script type="text/javascript" src="js/misc/json2.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="Highcharts-2.2.0/js/highcharts.js"></script>
<script type="text/javascript" src="Highcharts-2.2.0/js/modules/exporting.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<link href="css/whoswho.css" rel="stylesheet" type="text/css">
<link type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link type="text/css" href="static/css/bootstrap_directory.css" rel="stylesheet">
<link type="text/css" href="static/css/brownian-motion/jquery-ui-1.8.16.custom.css" rel="stylesheet">
<link type="text/css" href="static/css/whoswho.css" rel="stylesheet">
<!-- TODO test if each is really needed -->
<!-- TODO upgrade versions as per comments -->
<script type="text/javascript" src="static/js/jquery/jquery-1.7.min.js"></script>
<script type="text/javascript" src="static/js/jquery-ui-1.8.16.custom.min.js"></script>
<!-- upgraded available files
<script type="text/javascript" src="static/js/jquery/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="static/js/jquery-ui-1.12.1/jquery-ui.min.js"></script>
-->
<script type="text/javascript" src="static/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="static/js/bootstrap/bootstrap-dropdown-fade.js"></script>
<script type="text/javascript" src="static/js/misc/underscore.min.js"></script>
<script type="text/javascript" src="static/js/jquery/jquery.highlight-3.js"></script>
<script type="text/javascript" src="static/js/misc/json2.js"></script>
<script type="text/javascript" src="static/js/utils.js"></script>
<script type="text/javascript" src="static/js/highcharts-2.2/js/highcharts.js"></script>
<script type="text/javascript" src="static/js/highcharts-2.2/modules/exporting.js"></script>
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
<script type="text/javascript">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'UA-30062222-1\']);
_gaq.push([\'_setDomainName\', \'communityexplorer.org\']);
......@@ -194,7 +199,7 @@ include ("directory_content.php");
$content .= '</div>';
$content .= '</div>
<footer>
GENERATED BY <a href="http://iscpif.fr"><img src="css/branding/logo-iscpif_medium.png" alt="iscpif.fr" style="border: none; margin-bottom : -6px;" title="isc-pif" /></a>- <a href="http://sciencemapping.com" target="_BLANK">MOMA</a> - <a href="http://www.crea.polytechnique.fr/LeCREA/" target="_BLANK">CREA</a> - <a href="http://www.cnrs.fr/fr/recherche/index.htm" target="_BLANK">CNRS</a>
GENERATED BY <a href="http://iscpif.fr"><img src="static/css/branding/logo-iscpif_medium.png" alt="iscpif.fr" style="border: none; margin-bottom : -6px;" title="isc-pif" /></a>- <a href="http://sciencemapping.com" target="_BLANK">MOMA</a> - <a href="http://www.crea.polytechnique.fr/LeCREA/" target="_BLANK">CREA</a> - <a href="http://www.cnrs.fr/fr/recherche/index.htm" target="_BLANK">CNRS</a>
</footer>
</div>
</body>
......@@ -203,7 +208,7 @@ $content .= '</div>
//////// Header
$header = '<div class="row" id="welcome">
<div class="span12" align="justify">
<img src="img/RegistryBanner.png" align="center">
<img src="static/img/RegistryBanner.png" align="center">
<br/><br/>
<h1>Complex Systems Scholars</h1>
<br/>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment