eek
Signed-off-by: Flashwave <me@flash.moe>
This commit is contained in:
parent
579971f497
commit
6f21a0a0c6
5 changed files with 26 additions and 31 deletions
|
@ -1,26 +0,0 @@
|
||||||
<?php
|
|
||||||
// Flashii Configuration
|
|
||||||
$sakuraConf = array(); // Define configuration array
|
|
||||||
|
|
||||||
// PDO Database Connection
|
|
||||||
$sakuraConf['db'] = array();
|
|
||||||
$sakuraConf['db']['driver'] = 'mysql';
|
|
||||||
$sakuraConf['db']['unixsocket'] = false;
|
|
||||||
$sakuraConf['db']['host'] = 'localhost';
|
|
||||||
$sakuraConf['db']['port'] = 3306;
|
|
||||||
$sakuraConf['db']['username'] = 'flashii';
|
|
||||||
$sakuraConf['db']['password'] = 'Ky2YQMr4vu4zcZE&yLZT!gQ&Wdf-CxrQLej+^PS6jS5AgAQh52yf6Br&mq-C8J=F3Yw$3wnMU7?ebA9r+Abe4J_kzzs57C8U22&#wytuf-veF9WEuHfP-GRHQ^?5pXbx';
|
|
||||||
$sakuraConf['db']['database'] = 'flashii';
|
|
||||||
$sakuraConf['db']['prefix'] = 'fii_';
|
|
||||||
|
|
||||||
// URLs (for modularity)
|
|
||||||
$sakuraConf['urls']['main'] = 'iihsalf.net';
|
|
||||||
$sakuraConf['urls']['api'] = 'api.iihsalf.net';
|
|
||||||
$sakuraConf['urls']['content'] = 'cdn.iihsalf.net';
|
|
||||||
$sakuraConf['urls']['chat'] = 'chat.iihsalf.net';
|
|
||||||
$sakuraConf['urls']['manage'] = 'manage.iihsalf.net';
|
|
||||||
|
|
||||||
// Errata
|
|
||||||
$sakuraConf['etc']['localPath'] = '/var/www/flashii.net/';
|
|
||||||
$sakuraConf['etc']['templatesPath'] = $sakuraConf['etc']['localPath'] .'_sakura/templates/';
|
|
||||||
$sakuraConf['etc']['design'] = 'yuuno';
|
|
|
@ -8,7 +8,7 @@
|
||||||
namespace Sakura;
|
namespace Sakura;
|
||||||
|
|
||||||
// Define Sakura version
|
// Define Sakura version
|
||||||
define('SAKURA_VERSION', '20150402');
|
define('SAKURA_VERSION', '20150405');
|
||||||
|
|
||||||
// Define Sakura Path
|
// Define Sakura Path
|
||||||
define('ROOT', str_replace('_sakura', '', dirname(__FILE__)));
|
define('ROOT', str_replace('_sakura', '', dirname(__FILE__)));
|
||||||
|
|
|
@ -19,4 +19,23 @@
|
||||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||||
}());
|
}());
|
||||||
</script>
|
</script>
|
||||||
|
<div id="disqus_thread">
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||||
|
var disqus_shortname = 'flashii';
|
||||||
|
var disqus_identifier = 'news_".$getNews[0]['id']."';
|
||||||
|
var disqus_title = '".$getNews[0]['title']."';
|
||||||
|
var disqus_url = 'http://".$_SERVER['HTTP_HOST']."news".$getNews[0]['id']."';
|
||||||
|
|
||||||
|
/* * * DO NOT EDIT BELOW THIS LINE * * */
|
||||||
|
(function() {
|
||||||
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||||
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||||
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||||
|
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||||||
|
|
||||||
{% include 'global/footer.tpl' %}
|
{% include 'global/footer.tpl' %}
|
||||||
|
|
|
@ -11,7 +11,8 @@ require_once '/var/www/flashii.net/_sakura/sakura.php';
|
||||||
|
|
||||||
// Add page specific things
|
// Add page specific things
|
||||||
$renderData['page'] = [
|
$renderData['page'] = [
|
||||||
'title' => 'Flashii Dev'
|
'title' => 'Flashii Dev',
|
||||||
|
'newsComments' => false
|
||||||
];
|
];
|
||||||
$renderData['stats'] = [
|
$renderData['stats'] = [
|
||||||
'userCount' => ($userCount = count($users = Users::getAllUsers())) .' user'. ($userCount == 1 ? '' : 's'),
|
'userCount' => ($userCount = count($users = Users::getAllUsers())) .' user'. ($userCount == 1 ? '' : 's'),
|
||||||
|
|
|
@ -10,10 +10,11 @@ namespace Sakura;
|
||||||
require_once '/var/www/flashii.net/_sakura/sakura.php';
|
require_once '/var/www/flashii.net/_sakura/sakura.php';
|
||||||
|
|
||||||
// Add page specific things
|
// Add page specific things
|
||||||
$renderData['page'] = [
|
|
||||||
'title' => 'Flashii News'
|
|
||||||
];
|
|
||||||
$renderData['newsPosts'] = Main::getNewsPosts((isset($_GET['id']) && !isset($_GET['xml']) && is_numeric($_GET['id'])) ? $_GET['id'] : null, (isset($_GET['id']) && !isset($_GET['xml']) && is_numeric($_GET['id'])));
|
$renderData['newsPosts'] = Main::getNewsPosts((isset($_GET['id']) && !isset($_GET['xml']) && is_numeric($_GET['id'])) ? $_GET['id'] : null, (isset($_GET['id']) && !isset($_GET['xml']) && is_numeric($_GET['id'])));
|
||||||
|
$renderData['page'] = [
|
||||||
|
'title' => 'Flashii News',
|
||||||
|
'newsComments' => false
|
||||||
|
];
|
||||||
|
|
||||||
// News XML, don't really care so yeah
|
// News XML, don't really care so yeah
|
||||||
if(isset($_GET['xml'])) {
|
if(isset($_GET['xml'])) {
|
||||||
|
|
Reference in a new issue