Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Commit

Permalink
Beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
ammardev committed Nov 20, 2017
1 parent 63f64a9 commit f8acc33
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 34 deletions.
14 changes: 6 additions & 8 deletions config.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php

// values for debugging only
return array(
'host'=>'localhost',
'user'=>'root',
'pass'=>'sqlpi',
'database'=>'shortcut'
);
return [
'host' => 'localhost',
'user' => 'root',
'pass' => '',
'database' => 'shortcut'
];
3 changes: 1 addition & 2 deletions includes/DB_API/Urls.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public function scut_urls_add($userId, $url) {
$checkedUrl = $this->urlChecker($url);
if ($checkedUrl !== false) {
$alias = $this->aliasCreator();
$sql = $this->handle->prepare('INSERT INTO urls(userid,alias,link) VALUES (:id,:alias,:link)');
$sql->bindParam(':id', $userId);
$sql = $this->handle->prepare('INSERT INTO urls(alias,link) VALUES (:alias,:link)');
$sql->bindParam(':alias', $alias);
$sql->bindParam(':link', $checkedUrl);

Expand Down
2 changes: 1 addition & 1 deletion includes/footer.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<footer>
<p>ShortCut developed by Ammar Al-khawaldeh .</p>
<p>ShortCut developed by <a href="https://smartbit8.com" target="_blank">SmartBit</a>.</p>
</footer>
38 changes: 19 additions & 19 deletions includes/nav.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<div id="navBar">
<div id="navContainer">
<!-- TODO: it will convert to user photo when user is signed in . -->
<img id='logoImage' src="themes/<?=$info['theme']?>/images/logo.png"/>
<div id="spLine"></div>
<div id="navContainer">
<!-- TODO: it will convert to user photo when user is signed in . -->
<img id='logoImage' src="themes/<?= $info['theme'] ?>/images/logo.png"/>
<div id="spLine"></div>

<!-- TODO: it will convert to user name when user is signed in . -->
<span id="navName"><?= $info['name']?></span>
<!-- TODO: it will convert to user name when user is signed in . -->
<span id="navName"><?= $info['name'] ?></span>

<div id="navOtherSide">
<button type="button" id="inButton"><i class="fa fa-sign-in" aria-hidden="true"></i>
&nbsp;Sign in
</button>
<button type="button" id="UpButton"><i class="fa fa-user-plus"
aria-hidden="true"></i>
&nbsp;Sign up
</button>
<div id="navOtherSide">
<button type="button" onclick="alert('Soon')" id="inButton"><i class="fa fa-sign-in" aria-hidden="true"></i>
&nbsp;Sign in
</button>
<button type="button" onclick="alert('Soon')" id="UpButton"><i class="fa fa-user-plus"
aria-hidden="true"></i>
&nbsp;Sign up
</button>


<div id="menuBtn">
<i class="fa fa-ellipsis-v" aria-hidden="true"></i>
</div>
<div id="menuBtn">
<i class="fa fa-ellipsis-v" aria-hidden="true"></i>
</div>


</div>
</div>


</div>
</div>
</div>
Binary file modified themes/main/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 15 additions & 4 deletions themes/main/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ body {
margin: 0;
}

a {
color: #16a085;
text-shadow: none;
font-weight: bold;
text-decoration: none;
}

a:hover {
color: #14725d;
}

#navBar {
height: 50px;
position: absolute;
Expand Down Expand Up @@ -290,10 +301,10 @@ body {
top: 50%;
left: 50%;
padding: 20px;
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=0, Color=#000000)";/*IE 8*/
-moz-box-shadow: 0 4px 3px -1px rgba(0,0,0,0.5);/*FF 3.5+*/
-webkit-box-shadow: 0 4px 3px -1px rgba(0,0,0,0.5);/*Saf3-4, Chrome, iOS 4.0.2-4.2, Android 2.3+*/
box-shadow: 0 4px 3px -1px rgba(0,0,0,0.5);/* FF3.5+, Opera 9+, Saf1+, Chrome, IE10 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=0, Color=#000000)"; /*IE 8*/
-moz-box-shadow: 0 4px 3px -1px rgba(0, 0, 0, 0.5); /*FF 3.5+*/
-webkit-box-shadow: 0 4px 3px -1px rgba(0, 0, 0, 0.5); /*Saf3-4, Chrome, iOS 4.0.2-4.2, Android 2.3+*/
box-shadow: 0 4px 3px -1px rgba(0, 0, 0, 0.5); /* FF3.5+, Opera 9+, Saf1+, Chrome, IE10 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=3, Direction=135, Color=#000000); /*IE 5.5-7*/
}

Expand Down

0 comments on commit f8acc33

Please sign in to comment.