Skip to content

Commit

Permalink
Added database connection and settings to load language and messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Idealcoder committed Aug 6, 2013
1 parent 7fd6ba3 commit 811e55d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
<?php
session_start();
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
$pagetitle="Home";
include("$root/scripts/db-connection.php");
include("$root/scripts/header.php");
include("$root/scripts/settings.php");
?>
<div id ="settings">
<?php

/*$stmt=$dbh->prepare("SELECT * FROM `languages`");
while (){
echo ' <a href="/'.$row["accro"].'/"><img src="/static/img/flags/'.$row["url"].'" /></a>';
}*/

?>

</div>

<section>
<i class="icon-cogs"></i> icon-cogs

<?php echo $messages[$language["id"]]; ?><br>
Test Flags<br>
Selected vs not Selected
<img src="/static/img/flags/United-kingdom-flag-48.png"><img style="opacity:0.5" src="/static/img/flags/United-kingdom-flag-48.png">
Expand Down
1 change: 1 addition & 0 deletions scripts/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<link rel="stylesheet" href="/static/css/normalize.css">
<link rel="stylesheet" href="/static/css/main.css">
<link rel="stylesheet/less" type="text/css" href="/static/css/style.less">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<script src="/static/js/vendor/modernizr-2.6.2.min.js"></script>

<script>
Expand Down

0 comments on commit 811e55d

Please sign in to comment.