diff --git a/config.php b/config.php index 32fc3c4..adf7c21 100644 --- a/config.php +++ b/config.php @@ -1,9 +1,7 @@ 'localhost', - 'user'=>'root', - 'pass'=>'sqlpi', - 'database'=>'shortcut' - ); +return [ + 'host' => 'localhost', + 'user' => 'root', + 'pass' => '', + 'database' => 'shortcut' +]; diff --git a/includes/DB_API/Urls.php b/includes/DB_API/Urls.php index 68e5fa4..65a596c 100644 --- a/includes/DB_API/Urls.php +++ b/includes/DB_API/Urls.php @@ -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); diff --git a/includes/footer.php b/includes/footer.php index ab7024d..e7bc8ec 100644 --- a/includes/footer.php +++ b/includes/footer.php @@ -1,3 +1,3 @@ diff --git a/includes/nav.php b/includes/nav.php index 28020de..96f9c4f 100644 --- a/includes/nav.php +++ b/includes/nav.php @@ -1,29 +1,29 @@
\ No newline at end of file diff --git a/themes/main/images/logo.png b/themes/main/images/logo.png index 3ee3d1b..a6166cd 100644 Binary files a/themes/main/images/logo.png and b/themes/main/images/logo.png differ diff --git a/themes/main/style.css b/themes/main/style.css index cca04e8..8ae9ea3 100644 --- a/themes/main/style.css +++ b/themes/main/style.css @@ -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; @@ -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*/ }