diff --git a/about.php b/about.php index 9f929c8..aea0962 100644 --- a/about.php +++ b/about.php @@ -1,69 +1,69 @@ - - - - - - -About Us - - - - - - - - -
-
- -
- - - -
-
-

-
-

We would like to hear from You.

- -
- -
- - - + + + + + + +About Us + + + + + + + + +
+
+ +
+ + + +
+
+

+
+

We would like to hear from You.

+ +
+ +
+ + + diff --git a/add_comment.php b/add_comment.php index 263abaa..f298c73 100644 --- a/add_comment.php +++ b/add_comment.php @@ -1,40 +1,40 @@ -"; - } - else - { - echo "
Some error has occur.
Please check the values. Might be some field left out. "; - include 'add_comment_form.php'; - } - - - } - else - { - include 'add_comment_form.php'; - } - - - } - else - { - if ($countc==0) - { - echo "

Be the first one to comment

"; - } - echo "

Please login to post comments"; - } - +"; + } + else + { + echo "
Some error has occur.
Please check the values. Might be some field left out. "; + include 'add_comment_form.php'; + } + + + } + else + { + include 'add_comment_form.php'; + } + + + } + else + { + if ($countc==0) + { + echo "

Be the first one to comment

"; + } + echo "

Please login to post comments"; + } + ?> \ No newline at end of file diff --git a/add_comment_form.php b/add_comment_form.php index f227271..b602bfe 100644 --- a/add_comment_form.php +++ b/add_comment_form.php @@ -1,28 +1,28 @@ -Be the first one to comment

"; - } - ?> -
-
" method="post" > -
- " name="uid" size="3" maxlength="20"> - " name="bid" size="3" maxlength="20"> -
- Heading: - " name="head" size="70" maxlength="100"> -
-
- Comment: - -
-
- -
-
-Be the first one to comment

"; + } + ?> +
+
" method="post" > +
+ " name="uid" size="3" maxlength="20"> + " name="bid" size="3" maxlength="20"> +
+ Heading: + " name="head" size="70" maxlength="100"> +
+
+ Comment: + +
+
+ +
+
+ \ No newline at end of file diff --git a/add_comment_script.php b/add_comment_script.php index d469da2..eb1fae9 100644 --- a/add_comment_script.php +++ b/add_comment_script.php @@ -1,51 +1,51 @@ -$comment"; //for testing only - $mysql_query_run=$connection->query("SELECT DISTINCT `comment` FROM `comments` WHERE `bookid`='$bid'"); - while ($rows=$mysql_query_run->fetch_array()) - { - $com=$rows[0]; - if($com==$comment) - { - $acess=0; - echo "Please Don't copy someones comment
"; - } - } - //neutralizing the data - if ($acess==1) - { - $head=htmlentities($head); - $comment=htmlentities($comment); - $date=date('Y-m-d H:i:s'); //to get the current system date time. - // php insertion code - $sql = "INSERT INTO `comments` (`cid`, `userid`, `bookid`, `cheadding`, `comment`, `date`) VALUES (NULL, '$uid', '$bid', '$head', '$comment', '$date');"; - - include_once "user/core.inc.php"; //to get database acess - - $mysql_query_run=$connection->query($sql); //data adding query - if(!$mysql_query_run) - { - // error occurs - echo "
Error writing data".@mysqli_error($connection); - } - else - { //sucess in adding the data. - echo "Thank you for your comment"; - //header('location: $current_file'); //to refresh current page. - } - } - else - { - echo "
Some error has occur.
Please check the values. Might be some field left out."; - include 'add_comment_form.php'; - } +$comment"; //for testing only + $mysql_query_run=$connection->query("SELECT DISTINCT `comment` FROM `comments` WHERE `bookid`='$bid'"); + while ($rows=$mysql_query_run->fetch_array()) + { + $com=$rows[0]; + if($com==$comment) + { + $acess=0; + echo "Please Don't copy someones comment
"; + } + } + //neutralizing the data + if ($acess==1) + { + $head=htmlentities($head); + $comment=htmlentities($comment); + $date=date('Y-m-d H:i:s'); //to get the current system date time. + // php insertion code + $sql = "INSERT INTO `comments` (`cid`, `userid`, `bookid`, `cheadding`, `comment`, `date`) VALUES (NULL, '$uid', '$bid', '$head', '$comment', '$date');"; + + include_once "user/core.inc.php"; //to get database acess + + $mysql_query_run=$connection->query($sql); //data adding query + if(!$mysql_query_run) + { + // error occurs + echo "
Error writing data".@mysqli_error($connection); + } + else + { //sucess in adding the data. + echo "Thank you for your comment"; + //header('location: $current_file'); //to refresh current page. + } + } + else + { + echo "
Some error has occur.
Please check the values. Might be some field left out."; + include 'add_comment_form.php'; + } ?> \ No newline at end of file diff --git a/blist.php b/blist.php index 4bb3a4a..5affd61 100644 --- a/blist.php +++ b/blist.php @@ -1,85 +1,85 @@ - - - - - - -Sub shelf <?php echo " -$subcat";?> - /> - /> - - - - - - - - -
-
- -
- query("SELECT `id`,`name`,`bref` FROM `books` WHERE `subcat`='$subcat' ORDER BY `name` ASC"); - $count=$result->num_rows; - if ($count==0) - { - include "error.php"; - } - $i=1; - while ($rows=$result->fetch_array()) - { - $id=$rows[0]; - $booktitle=$rows[1]; - $bookbrefdesc=$rows[2]; - if ($i%2!=0 && $i-1<$count) - { - ?> - - -
-
-

-
-


Have fun :)

- -
- -
- - + + + + + + +Sub shelf <?php echo " -$subcat";?> + /> + /> + + + + + + + + +
+
+ +
+ query("SELECT `id`,`name`,`bref` FROM `books` WHERE `subcat`='$subcat' ORDER BY `name` ASC"); + $count=$result->num_rows; + if ($count==0) + { + include "error.php"; + } + $i=1; + while ($rows=$result->fetch_array()) + { + $id=$rows[0]; + $booktitle=$rows[1]; + $bookbrefdesc=$rows[2]; + if ($i%2!=0 && $i-1<$count) + { + ?> + + +
+
+

+
+


Have fun :)

+ +
+ +
+ + \ No newline at end of file diff --git a/book.php b/book.php index 7a7f6d1..d3d4891 100644 --- a/book.php +++ b/book.php @@ -1,90 +1,90 @@ - - - - - - - - - - - - - - - - - -
-
- -
- - query("SELECT * FROM `upload_books` WHERE `upload_id`='$ids'"); - $rows=$resultb->fetch_array(); - $id=$rows[0]; - $booktitle=$rows[1]; - $author=$rows[2]; - $publisher=$rows[3]; - $size=$rows[4]; - $bookbrefdesc=$rows[5]; - $bookdesc=$rows[6]; - $durl=$rows[7]; - $ilink=$rows[8]; - $uploader=$rows[11]; - ?> - - -
-
-

- -
-
-
- - - - - + + + + + + + + + + + + + + + + +
+
+ +
+ + query("SELECT * FROM `upload_books` WHERE `upload_id`='$ids'"); + $rows=$resultb->fetch_array(); + $id=$rows[0]; + $booktitle=$rows[1]; + $author=$rows[2]; + $publisher=$rows[3]; + $size=$rows[4]; + $bookbrefdesc=$rows[5]; + $bookdesc=$rows[6]; + $durl=$rows[7]; + $ilink=$rows[8]; + $uploader=$rows[11]; + ?> + + +
+
+

+ +
+
+
+ + + + + \ No newline at end of file diff --git a/book_embed.php b/book_embed.php index cbb1a4b..3883387 100644 --- a/book_embed.php +++ b/book_embed.php @@ -1,2 +1,2 @@ -embeding link - \ No newline at end of file + + \ No newline at end of file diff --git a/bookembed.php b/bookembed.php index 69f4be0..de9fcf7 100644 --- a/bookembed.php +++ b/bookembed.php @@ -1,117 +1,117 @@ - - - query("SELECT * FROM `books` WHERE `id`='$ids'"); - $count_rows=$resultb->num_rows; - if ($count_rows!=1) - { - include "header.php"; - include"error.php"; - } - else - { - $rows=$resultb->fetch_array(); - $id=$rows[0]; - $booktitle=$rows[1]; - $size=$rows[5]; - $bookbrefdesc=$rows[6]; - $bookdesc=$rows[7]; - $durl=$rows[8]; - $burl=$rows[10]; - $preview=$rows[11]; - $sdurl=$rows[12]; - $author=$rows[13]; - $publisher=$rows[14]; - $uploader=$rows[15]; - - // enabled on online site - $resultb=$connection->query("SELECT * FROM `userdetail` WHERE `uniqueid`='$uploader'"); - $rowsuser=$resultb->fetch_array(); - $uploader_name=$rowsuser[1]; - ?> - - - - - - -<?php echo "$booktitle";?> - /> - /> - - - - - - - - -
-
- -
- - - - - - - - -
- - - - + + + query("SELECT * FROM `books` WHERE `id`='$ids'"); + $count_rows=$resultb->num_rows; + if ($count_rows!=1) + { + include "header.php"; + include"error.php"; + } + else + { + $rows=$resultb->fetch_array(); + $id=$rows[0]; + $booktitle=$rows[1]; + $size=$rows[5]; + $bookbrefdesc=$rows[6]; + $bookdesc=$rows[7]; + $durl=$rows[8]; + $burl=$rows[10]; + $preview=$rows[11]; + $sdurl=$rows[12]; + $author=$rows[13]; + $publisher=$rows[14]; + $uploader=$rows[15]; + + // enabled on online site + $resultb=$connection->query("SELECT * FROM `userdetail` WHERE `uniqueid`='$uploader'"); + $rowsuser=$resultb->fetch_array(); + $uploader_name=$rowsuser[1]; + ?> + + + + + + +<?php echo "$booktitle";?> + /> + /> + + + + + + + + +
+
+ +
+ + + + + + + + +
+ + + + diff --git a/booklist.php b/booklist.php new file mode 100644 index 0000000..e3b8b80 --- /dev/null +++ b/booklist.php @@ -0,0 +1,73 @@ + + + + + + +
+
+
+
+ query("SELECT `id`,`name`,`bref` FROM `books` WHERE `subcat`='$subcat' ORDER BY `name` ASC"); + $count=$result->num_rows; + if ($count==0) + { + amazing('Something Goes Wrong',"No books are there on this subshelf related to $subcat","$http_referer"); + } + $i=1; + while ($rows=$result->fetch_array()) + { + $id=$rows[0]; + $booktitle=$rows[1]; + $bookbrefdesc=$rows[2]; + + if ($i%2==0) + { + otr($booktitle,$bookbrefdesc,"entry?ref=$id"); + } + else + { + shopping($booktitle,$bookbrefdesc,"entry?ref=$id"); + } + ++$i; + } + ?> +
+ +
+ +
+
+ + + \ No newline at end of file diff --git a/bookshelfs.php b/bookshelfs.php new file mode 100644 index 0000000..5972af0 --- /dev/null +++ b/bookshelfs.php @@ -0,0 +1,55 @@ + + + + + + +
+
+
+
+ query("SELECT DISTINCT `cat` FROM `books` "); + $count=$result->num_rows; + if ($count==0) + { + amazing('Something Goes Wrong',"No bookshelfs found","$http_referer"); + } + $i=1; + while ($rows=$result->fetch_array()) + { + $cat=$rows[0]; + otr($cat,"Books related to $cat","subshelf?cat=$cat",$cat); + } + ?> +
+ +
+ +
+
+ + + \ No newline at end of file diff --git a/class/book.class.php b/class/book.class.php new file mode 100644 index 0000000..a851f08 --- /dev/null +++ b/class/book.class.php @@ -0,0 +1,62 @@ +query("SELECT * FROM `books` WHERE `id`='$ids'"); + $count_rows=$resultb->num_rows; + if ($count_rows!=1) + { + // error handler + } + else + { + + $rows=$resultb->fetch_array(); + $this->id=$rows[0]; + $this->booktitle=$rows[1]; + $this->tags=$rows[4]; + $this->size=$rows[5]; + $this->bookbrefdesc=$rows[6]; + $this->bookdesc=$rows[7]; + $this->durl=$rows[8]; + $this->burl=$rows[10]; + $this->preview=$rows[11]; + $this->sdurl=$rows[12]; + $this->author=$rows[13]; + $this->publisher=$rows[14]; + $this->uploader=$rows[15]; + + //close the database connection + mysqli_close($connection); + + // to get user details + $this->get_user($this->uploader); + } + } + // end of class + } +?> \ No newline at end of file diff --git a/class/comment.class.php b/class/comment.class.php new file mode 100644 index 0000000..b3e9b02 --- /dev/null +++ b/class/comment.class.php @@ -0,0 +1,69 @@ +cid=$ids; + + $resultc=$connection->query("SELECT * FROM `comments` WHERE `cid`='$ids'"); + + $rows=$resultc->fetch_array(); + + $this->userid=$rows[1]; + $this->bookid=$rows[2]; + $this->comment=$rows[3]; + $this->dated=$rows[4]; + + //close the database connection + mysqli_close($connection); + + // to get user details + $this->get_user($this->userid); + } + + public function get_comment($bid,$com) + { + $this->userid=$_SESSION['user']; + $this->bookid=$bid; + $this->comment=$com; + $this->dated=date('Y-m-d H:i:s'); //to get the current system date time r will give day date time and timezone. + } + + public function check_exist() + { + # code... + // add the code to check wether the comment exist or not + } + + public function add_comment() + { + $sql = "INSERT INTO `comments` (`cid`, `userid`, `bookid`, `comment`, `date`) + VALUES ('', '$this->userid', '$this->bookid', '$this->comment', '$this->dated');"; + + include 'dbms/dbms_imp.php'; + $mysql_query_run=$connection->query($sql); //data adding query + if (!$mysql_query_run) + { + echo "Error adding the comment".mysqli_error($connection); + } + mysqli_close($connection); + + $current_file=$_SERVER['SCRIPT_NAME']; + header('location:'.$current_file.'?ref='.$this->bookid); //to redirect to current page + } + } +?> \ No newline at end of file diff --git a/class/login.class.php b/class/login.class.php new file mode 100644 index 0000000..cdff797 --- /dev/null +++ b/class/login.class.php @@ -0,0 +1,41 @@ +password_hash_comp($email,$password)) + { + include 'dbms/dbms_imp.php'; + $query_run=$connection-> query("SELECT `uniqueid` FROM `userdetail` WHERE `emailid`='$email'"); + mysqli_close($connection); + $row=$query_run->fetch_array(); + + //$user= new user; + $user=$row[0]; + $_SESSION['user']=$user; + $GLOBALS[$user]=$_SESSION['user']; + + //redirect to userpage + $current_file=$_SERVER['SCRIPT_NAME']; + header('location:'.$current_file); //to redirect to current page untill userpage is not made + echo "Logged in"; + } + else + { + echo "Email and password combination is not correct"; + } + + } + } +?> diff --git a/class/register.class.php b/class/register.class.php new file mode 100644 index 0000000..4b556c1 --- /dev/null +++ b/class/register.class.php @@ -0,0 +1,95 @@ +password=$password1; + unset($password1); + } + + public function add() // function to add data to database without password + { + include 'dbms/dbms_imp.php'; + + $insert_query="INSERT INTO `userdetail` (`uniqueid`, `username`, `password`, `emailid`, `firstname`, `surname`, `gender`, `dob`, `status`) + VALUES ('','$this->username','','$this->email','$this->fname','$this->lname','$this->gender','$this->dob','unverified')"; + + $mysql_query_run=$connection->query($insert_query); + + mysqli_close($connection); + + if(!$mysql_query_run) + { + // error occurs + echo "
Error writing data".mysqli_error($connection); + } + else + { + $this->get_userid(); + $this->add_password(); + } + + } + + public function get_userid() // function to get userid back + { + include 'dbms/dbms_imp.php'; + + $sql= "SELECT `uniqueid` FROM `userdetail` WHERE `emailid`='$this->email';"; + + $mysql_query_run=$connection->query($sql); + + if(!$mysql_query_run) + { + // error occurs + echo "
Error getting data".mysqli_error($connection); + } + else + { + $rows=$mysql_query_run->fetch_array(); + $this->uid=$rows[0]; + } + } + + public function add_password() // function to add the password to corresponding userid + { + $this->password=$this->password_hash_gen($this->email,$this->password,$this->uid); + + include 'dbms/dbms_imp.php'; + + $sql = "UPDATE `userdetail` SET `password` = '$this->password' WHERE `uniqueid` = '$this->uid'"; + + $mysql_query_run=$connection->query($sql); + + if(!$mysql_query_run) + { + // error occurs + echo "
Error writing data".mysqli_error($connection); + } + } + + + } +?> \ No newline at end of file diff --git a/class/traits/password.trait.php b/class/traits/password.trait.php new file mode 100644 index 0000000..c051d55 --- /dev/null +++ b/class/traits/password.trait.php @@ -0,0 +1,53 @@ + query("SELECT `uniqueid`,`password` FROM `userdetail` WHERE `emailid`='$email'"); + mysqli_close($connection); + $row=$query_run->fetch_array(); + //echo $row[0]."
".$row[1]."
".$email."
".$password."
".$this->password_hash_gen_old($password)."
".md5($password); + if ($row[1]==$this->password_hash_gen($email,$password,$row[0])) + { + return true; + } + else if ($row[1]==$this->password_hash_gen_old($password)) // to preserve backward compactibility + { + return true; + } + else + { + return false; + } + + } + } + +?> + diff --git a/class/user.class.php b/class/user.class.php new file mode 100644 index 0000000..f8d7ea1 --- /dev/null +++ b/class/user.class.php @@ -0,0 +1,61 @@ +query("SELECT * FROM `userdetail` WHERE `uniqueid`='$id'"); + $rowsuser=$resultb->fetch_array(); + $this->username=$rowsuser[1]; + $this->email=$rowsuser[3]; + $this->fname=$rowsuser[4]; + $this->lname=$rowsuser[5]; + $this->gender=$rowsuser[6]; + $this->dob=$rowsuser[7]; + $this->status=$rowsuser[8]; + $this->level=$rowsuser[9]; + + //close the database connection + mysqli_close($connection); + } + } +?> \ No newline at end of file diff --git a/comment.php b/comment.php index 68dea84..354226b 100644 --- a/comment.php +++ b/comment.php @@ -1,100 +1,100 @@ -query("SELECT * FROM `comments` WHERE `bookid`='$bid'"); - $countc=$resultc->num_rows; - //echo "count is $countc"; - if ($countc==0) - { - //include "add_comment.php"; - ?> - - fetch_array()) - { - $cid=$rows[0]; - $user=$rows[1]; - //$book=$rows[2]; - $comh=$rows[3]; - $com=$rows[4]; - $date=$rows[5]; - - $resultcu=$connection->query("SELECT * FROM `userdetail` WHERE `uniqueid`='$user'"); - $rowsuser=$resultcu->fetch_array(); - $uploader_name=$rowsuser[1]; - /*
- -
- -

*/ - if ($i%2!=0 && $i-1<$countc) - { - ?> - - - - -
-
-
- - -
-

-
-
- - - -
-
- - -
-
- +query("SELECT * FROM `comments` WHERE `bookid`='$bid'"); + $countc=$resultc->num_rows; + //echo "count is $countc"; + if ($countc==0) + { + //include "add_comment.php"; + ?> + + fetch_array()) + { + $cid=$rows[0]; + $user=$rows[1]; + //$book=$rows[2]; + $comh=$rows[3]; + $com=$rows[4]; + $date=$rows[5]; + + $resultcu=$connection->query("SELECT * FROM `userdetail` WHERE `uniqueid`='$user'"); + $rowsuser=$resultcu->fetch_array(); + $uploader_name=$rowsuser[1]; + /*
+ +
+ +

*/ + if ($i%2!=0 && $i-1<$countc) + { + ?> + + + + +
+
+
+ + +
+

+
+
+ + + +
+
+ + +
+
+ diff --git a/contactus.php b/contactus.php index f2fe3cc..32bb08d 100644 --- a/contactus.php +++ b/contactus.php @@ -1,51 +1,51 @@ - - - - - - -PDF Books - - - - - - - - -
-
- -
- - - -
-
-

-
-

-
-
- - - + + + + + + +PDF Books + + + + + + + + +
+
+ +
+ + + +
+
+

+
+

+
+
+ + + diff --git a/core.php b/core.php index 8af156f..3d6b052 100644 --- a/core.php +++ b/core.php @@ -1,25 +1,32 @@ - \ No newline at end of file diff --git a/dbms.inc.php b/dbms.inc.php new file mode 100644 index 0000000..3fb24e6 --- /dev/null +++ b/dbms.inc.php @@ -0,0 +1,47 @@ + error = ".mysqli_error($connect); + + $con=2; + } + } + + $mysql_charset=mysql_set_charset($connect,'utf8') + if (!$mysql_charset) + { + echo "Unable to set charset"; + + $con=3; + } + + } +?> \ No newline at end of file diff --git a/dbms/dbms_imp.php b/dbms/dbms_imp.php index a4d2fa7..1de7516 100644 --- a/dbms/dbms_imp.php +++ b/dbms/dbms_imp.php @@ -1,28 +1,28 @@ - +".mysqli_connect_error(); + die(); +} + +$mysql_charset=@mysqli_set_charset($connection,'utf8'); +if(!$mysql_charset) +{ + echo "unable to set database connection encoding
".mysqli_connect_error(); + die(); +} + +$mysql_sdb=@mysqli_select_db($connection,$mysql_db); +if(!$mysql_sdb) +{ + echo "unable to locate database".mysqli_error($connection); + die(); + +} + +?> diff --git a/default.css b/default.css index ee277fc..d83a2a1 100644 --- a/default.css +++ b/default.css @@ -1,576 +1,576 @@ - html, body - { - height: 100%; - } - - body - { - margin: 0px; - padding: 0px; - background: #333333; - font-family: 'Varela', sans-serif; - font-size: 11pt; - font-weight: 300; - color: #656565; - } - - - h1, h2, h3 - { - margin: 0; - padding: 0; - font-weight: 700; - color: #2B3F48; - } - - p, ol, ul - { - margin-top: 0; - } - - ol, ul - { - padding: 0; - list-style: none; - } - - ul.actions - { - text-align: center; - } - - ul.actions li - { - } - - ul.actions2 - { - text-align: center; - } - - p - { - line-height: 180%; - } - - strong - { - } - - a - { - color: #0000FF; - } - - a:hover - { - text-decoration: none; - } - - .container - { - overflow: hidden; - margin: 0em auto; - width: 1000px; - } - -/*********************************************************************************/ -/* Image Style */ -/*********************************************************************************/ - - .image - { - display: inline-block; - } - - .image img - { - display: block; - width: 100%; - } - - .image-full - { - display: block; - width: 100%; - margin: 0 0 2em 0; - } - - .image-left - { - float: left; - margin: 0 2em 2em 0; - } - - .image-centered - { - display: block; - margin: 0 0 2em 0; - } - - .image-centered img - { - margin: 0 auto; - width: auto; - } - -/*********************************************************************************/ -/* List Styles */ -/*********************************************************************************/ - - ul.staff - { - margin-bottom: 3em; - } - - ul.staff li - { - display: inline-block; - } - - ul.staff li img - { - width: 80%; - border-radius: 50%; - } - - -/*********************************************************************************/ -/* Social Icon Styles */ -/*********************************************************************************/ - - ul.contact - { - margin: 0; - padding: 2em 0em 0em 0em; - list-style: none; - } - - ul.contact li - { - display: inline-block; - padding: 0em 0.30em; - font-size: 1em; - } - - ul.contact li span - { - display: none; - margin: 0; - padding: 0; - } - - ul.contact li a - { - color: #FFF; - } - - ul.contact li a:before - { - display: inline-block; - background: #3f3f3f; - width: 40px; - height: 40px; - line-height: 40px; - border-radius: 20px; - text-align: center; - color: #FFFFFF; - } - - ul.contact li a.icon-twitter:before { background: #2DAAE4; } - ul.contact li a.icon-facebook:before { background: #39599F; } - ul.contact li a.icon-dribbble:before { background: #C4376B; } - ul.contact li a.icon-tumblr:before { background: #31516A; } - ul.contact li a.icon-rss:before { background: #F2600B; } - -/*********************************************************************************/ -/* Button Style */ -/*********************************************************************************/ - - .button - { - display: inline-block; - padding: 0em 3em; - background: #009E2D; - letter-spacing: 0.20em; - line-height: 4em; - text-decoration: none; - text-transform: uppercase; - font-weight: 400; - font-size: 1em; - color: #FFF; - } - - .button:before - { - display: inline-block; - background: #FFC31F; - margin-right: 1em; - width: 40px; - height: 40px; - line-height: 40px; - border-radius: 20px; - text-align: center; - color: #272925; - } - -/*********************************************************************************/ -/* Heading Titles */ -/*********************************************************************************/ - - .title - { - margin-bottom: 3em; - } - - .title h2 - { - text-transform: uppercase; - font-size: 2.7em; - } - - .title .byline - { - font-size: 1.7em; - color: #6F6F6F; - } - -/*********************************************************************************/ -/* 4-column */ -/*********************************************************************************/ - - .box1, - .box2, - .box3, - .box4 - { - width: 235px; - } - - .box1, - .box2, - .box3, - { - float: left; - margin-right: 20px; - } - - .box4 - { - float: right; - } - -/*********************************************************************************/ -/* 3-column */ -/*********************************************************************************/ - - .boxA, - .boxB, - .boxC - { - width: 320px; - } - - .boxA, - .boxB - { - float: left; - margin-right: 20px; - } - - .boxC - { - float: right; - } - -/*********************************************************************************/ -/* 2-column */ -/*********************************************************************************/ - - .tbox1, - .tbox2 - { - width: 575px; - } - - .tbox1 - { - float: left; - } - - .tbox2 - { - float: right; - } - - #wrapper - { - background: #FFF; - } - -/*********************************************************************************/ -/* Header */ -/*********************************************************************************/ - - #header-wrapper - { - background: #333333; - } - - #header - { - position: relative; - padding: 3em 0em; - } - -/*********************************************************************************/ -/* Logo */ -/*********************************************************************************/ - - #logo - { - position: absolute; - top: 1em; - left: 0; - } - - #logo h1 - { - color: #FFF; - } - - #logo a - { - text-decoration: none; - text-transform: uppercase; - color: #FFF; - } - -/*********************************************************************************/ -/* Menu */ -/*********************************************************************************/ - - #menu - { - position: absolute; - top: 2em; - right: 0; - } - - #menu ul - { - display: inline-block; - } - - #menu li - { - display: block; - float: left; - text-align: center; - } - - #menu li a, #menu li span - { - padding: 1em 1.5em; - letter-spacing: 1px; - text-decoration: none; - text-transform: uppercase; - font-size: 0.8em; - color: #FFF; - } - - #menu li:hover a, #menu li.active a, #menu li.active span - { - color: #FFF; - } - - #menu .current_page_item a - { - background: #009E2D; - color: #FFF; - } - - #menu .icon - { - } - -/*********************************************************************************/ -/* Banner */ -/*********************************************************************************/ - - #banner - { - overflow: hidden; - padding: 7em 0em 5em 0em; - background: #202020; - background-size: cover; - text-align: center; - color: rgba(255,255,255,.8); - } - - #banner .title - { - margin-bottom: 1em; - text-transform: uppercase !important; - } - - #banner .title h2 - { - color: #FFF; - } - - #banner .title .byline - { - color: rgba(255,255,255,.6); - } - - #banner .button - { - margin-top: 3em; - background: #009E2D !important; - } - -/*********************************************************************************/ -/* Page */ -/*********************************************************************************/ - - #page - { - padding: 5em 0em; - text-align: center; - } - - #page .button - { - margin-top: 2em; - display: inline-block; - text-align: center; - } - -/*********************************************************************************/ -/* Content */ -/*********************************************************************************/ - - #content - { - } - -/*********************************************************************************/ -/* Sidebar */ -/*********************************************************************************/ - - #sidebar - { - } - -/*********************************************************************************/ -/* Footer */ -/*********************************************************************************/ - - #footer - { - } - -/*********************************************************************************/ -/* Copyright */ -/*********************************************************************************/ - - #copyright - { - overflow: hidden; - padding: 5em 0em; - border-top: 1px solid rgba(255,255,255,0.08); - } - - #copyright p - { - text-align: center; - font-size: 1em; - color: rgba(255,255,255,0.5); - } - - #copyright a - { - text-decoration: none; - color: rgba(255,255,255,0.8); - } - -/*********************************************************************************/ -/* Featured */ -/*********************************************************************************/ - - #featured - { - overflow: hidden; - padding: 5em 0em; - background: #009E2D; - color: rgba(255,255,255,.8); - text-align: center; - } - - #featured a - { - color: rgba(255,255,255,1); - } - - #featured .button - { - background: #FFF; - margin-top: 3em; - font-size: 1em; - color: #009E2D; - } - - #featured .title - { - } - - #featured .title h2 - { - color: #FFF; - } - - #featured .title .byline - { - color: rgba(255,255,255,.6); - } - -/*********************************************************************************/ -/* Featured */ -/*********************************************************************************/ - -.box -{ - padding: 3em 2em 2em 2em; - border: 1px solid rgba(0,0,0,0.1); - border-radius: 8px; - text-align: center; -} - - - #extra - { - overflow: hidden; - padding: 5em 0em; - } - - #extra .title - { - text-align: center; - } - - #extra .button - { - margin-top: 5em; - } - - #extra .fa - { - display: block; - margin-bottom: 0.5em; - text-align: center; - font-size: 3em; - } - - - + html, body + { + height: 100%; + } + + body + { + margin: 0px; + padding: 0px; + background: #333333; + font-family: 'Varela', sans-serif; + font-size: 11pt; + font-weight: 300; + color: #656565; + } + + + h1, h2, h3 + { + margin: 0; + padding: 0; + font-weight: 700; + color: #2B3F48; + } + + p, ol, ul + { + margin-top: 0; + } + + ol, ul + { + padding: 0; + list-style: none; + } + + ul.actions + { + text-align: center; + } + + ul.actions li + { + } + + ul.actions2 + { + text-align: center; + } + + p + { + line-height: 180%; + } + + strong + { + } + + a + { + color: #0000FF; + } + + a:hover + { + text-decoration: none; + } + + .container + { + overflow: hidden; + margin: 0em auto; + width: 1000px; + } + +/*********************************************************************************/ +/* Image Style */ +/*********************************************************************************/ + + .image + { + display: inline-block; + } + + .image img + { + display: block; + width: 100%; + } + + .image-full + { + display: block; + width: 100%; + margin: 0 0 2em 0; + } + + .image-left + { + float: left; + margin: 0 2em 2em 0; + } + + .image-centered + { + display: block; + margin: 0 0 2em 0; + } + + .image-centered img + { + margin: 0 auto; + width: auto; + } + +/*********************************************************************************/ +/* List Styles */ +/*********************************************************************************/ + + ul.staff + { + margin-bottom: 3em; + } + + ul.staff li + { + display: inline-block; + } + + ul.staff li img + { + width: 80%; + border-radius: 50%; + } + + +/*********************************************************************************/ +/* Social Icon Styles */ +/*********************************************************************************/ + + ul.contact + { + margin: 0; + padding: 2em 0em 0em 0em; + list-style: none; + } + + ul.contact li + { + display: inline-block; + padding: 0em 0.30em; + font-size: 1em; + } + + ul.contact li span + { + display: none; + margin: 0; + padding: 0; + } + + ul.contact li a + { + color: #FFF; + } + + ul.contact li a:before + { + display: inline-block; + background: #3f3f3f; + width: 40px; + height: 40px; + line-height: 40px; + border-radius: 20px; + text-align: center; + color: #FFFFFF; + } + + ul.contact li a.icon-twitter:before { background: #2DAAE4; } + ul.contact li a.icon-facebook:before { background: #39599F; } + ul.contact li a.icon-dribbble:before { background: #C4376B; } + ul.contact li a.icon-tumblr:before { background: #31516A; } + ul.contact li a.icon-rss:before { background: #F2600B; } + +/*********************************************************************************/ +/* Button Style */ +/*********************************************************************************/ + + .button + { + display: inline-block; + padding: 0em 3em; + background: #009E2D; + letter-spacing: 0.20em; + line-height: 4em; + text-decoration: none; + text-transform: uppercase; + font-weight: 400; + font-size: 1em; + color: #FFF; + } + + .button:before + { + display: inline-block; + background: #FFC31F; + margin-right: 1em; + width: 40px; + height: 40px; + line-height: 40px; + border-radius: 20px; + text-align: center; + color: #272925; + } + +/*********************************************************************************/ +/* Heading Titles */ +/*********************************************************************************/ + + .title + { + margin-bottom: 3em; + } + + .title h2 + { + text-transform: uppercase; + font-size: 2.7em; + } + + .title .byline + { + font-size: 1.7em; + color: #6F6F6F; + } + +/*********************************************************************************/ +/* 4-column */ +/*********************************************************************************/ + + .box1, + .box2, + .box3, + .box4 + { + width: 235px; + } + + .box1, + .box2, + .box3, + { + float: left; + margin-right: 20px; + } + + .box4 + { + float: right; + } + +/*********************************************************************************/ +/* 3-column */ +/*********************************************************************************/ + + .boxA, + .boxB, + .boxC + { + width: 320px; + } + + .boxA, + .boxB + { + float: left; + margin-right: 20px; + } + + .boxC + { + float: right; + } + +/*********************************************************************************/ +/* 2-column */ +/*********************************************************************************/ + + .tbox1, + .tbox2 + { + width: 575px; + } + + .tbox1 + { + float: left; + } + + .tbox2 + { + float: right; + } + + #wrapper + { + background: #FFF; + } + +/*********************************************************************************/ +/* Header */ +/*********************************************************************************/ + + #header-wrapper + { + background: #333333; + } + + #header + { + position: relative; + padding: 3em 0em; + } + +/*********************************************************************************/ +/* Logo */ +/*********************************************************************************/ + + #logo + { + position: absolute; + top: 1em; + left: 0; + } + + #logo h1 + { + color: #FFF; + } + + #logo a + { + text-decoration: none; + text-transform: uppercase; + color: #FFF; + } + +/*********************************************************************************/ +/* Menu */ +/*********************************************************************************/ + + #menu + { + position: absolute; + top: 2em; + right: 0; + } + + #menu ul + { + display: inline-block; + } + + #menu li + { + display: block; + float: left; + text-align: center; + } + + #menu li a, #menu li span + { + padding: 1em 1.5em; + letter-spacing: 1px; + text-decoration: none; + text-transform: uppercase; + font-size: 0.8em; + color: #FFF; + } + + #menu li:hover a, #menu li.active a, #menu li.active span + { + color: #FFF; + } + + #menu .current_page_item a + { + background: #009E2D; + color: #FFF; + } + + #menu .icon + { + } + +/*********************************************************************************/ +/* Banner */ +/*********************************************************************************/ + + #banner + { + overflow: hidden; + padding: 7em 0em 5em 0em; + background: #202020; + background-size: cover; + text-align: center; + color: rgba(255,255,255,.8); + } + + #banner .title + { + margin-bottom: 1em; + text-transform: uppercase !important; + } + + #banner .title h2 + { + color: #FFF; + } + + #banner .title .byline + { + color: rgba(255,255,255,.6); + } + + #banner .button + { + margin-top: 3em; + background: #009E2D !important; + } + +/*********************************************************************************/ +/* Page */ +/*********************************************************************************/ + + #page + { + padding: 5em 0em; + text-align: center; + } + + #page .button + { + margin-top: 2em; + display: inline-block; + text-align: center; + } + +/*********************************************************************************/ +/* Content */ +/*********************************************************************************/ + + #content + { + } + +/*********************************************************************************/ +/* Sidebar */ +/*********************************************************************************/ + + #sidebar + { + } + +/*********************************************************************************/ +/* Footer */ +/*********************************************************************************/ + + #footer + { + } + +/*********************************************************************************/ +/* Copyright */ +/*********************************************************************************/ + + #copyright + { + overflow: hidden; + padding: 5em 0em; + border-top: 1px solid rgba(255,255,255,0.08); + } + + #copyright p + { + text-align: center; + font-size: 1em; + color: rgba(255,255,255,0.5); + } + + #copyright a + { + text-decoration: none; + color: rgba(255,255,255,0.8); + } + +/*********************************************************************************/ +/* Featured */ +/*********************************************************************************/ + + #featured + { + overflow: hidden; + padding: 5em 0em; + background: #009E2D; + color: rgba(255,255,255,.8); + text-align: center; + } + + #featured a + { + color: rgba(255,255,255,1); + } + + #featured .button + { + background: #FFF; + margin-top: 3em; + font-size: 1em; + color: #009E2D; + } + + #featured .title + { + } + + #featured .title h2 + { + color: #FFF; + } + + #featured .title .byline + { + color: rgba(255,255,255,.6); + } + +/*********************************************************************************/ +/* Featured */ +/*********************************************************************************/ + +.box +{ + padding: 3em 2em 2em 2em; + border: 1px solid rgba(0,0,0,0.1); + border-radius: 8px; + text-align: center; +} + + + #extra + { + overflow: hidden; + padding: 5em 0em; + } + + #extra .title + { + text-align: center; + } + + #extra .button + { + margin-top: 5em; + } + + #extra .fa + { + display: block; + margin-bottom: 0.5em; + text-align: center; + font-size: 3em; + } + + + diff --git a/developer.php b/developer.php index 454a70c..c6a5e15 100644 --- a/developer.php +++ b/developer.php @@ -1,58 +1,58 @@ - - - - - - -Developers - - - - - - - - -
-
- -
- -
-
-

Please note

- -
-
- -
-
-

About Us

-
-

-
-
- - - + + + + + + +Developers + + + + + + + + +
+
+ +
+ +
+
+

Please note

+ +
+
+ +
+
+

About Us

+
+

+
+
+ + + diff --git a/display/forms/comment.form.php b/display/forms/comment.form.php new file mode 100644 index 0000000..b30c372 --- /dev/null +++ b/display/forms/comment.form.php @@ -0,0 +1,13 @@ + + +
" method="POST" enctype="" target=""> +
+ + +
+ +
diff --git a/display/functions/amazing.func.php b/display/functions/amazing.func.php new file mode 100644 index 0000000..d07f92e --- /dev/null +++ b/display/functions/amazing.func.php @@ -0,0 +1,36 @@ + + +
+
+

>

+
+
+ +
+
+ +
+
+ \ No newline at end of file diff --git a/display/functions/comment.func.php b/display/functions/comment.func.php new file mode 100644 index 0000000..1373248 --- /dev/null +++ b/display/functions/comment.func.php @@ -0,0 +1,76 @@ + + +
+
+ +
+ username; ?> + dated;?> +
+
+
+ comment; + ?> +
+ +
+
+ \ No newline at end of file diff --git a/display/functions/get_image.func.php b/display/functions/get_image.func.php new file mode 100644 index 0000000..8b4fa31 --- /dev/null +++ b/display/functions/get_image.func.php @@ -0,0 +1,20 @@ + diff --git a/display/functions/otr.func.php b/display/functions/otr.func.php new file mode 100644 index 0000000..1ddc229 --- /dev/null +++ b/display/functions/otr.func.php @@ -0,0 +1,47 @@ + + +
+ +
)"> +

>

+
+
+ +
+
+ +
+
+ \ No newline at end of file diff --git a/display/functions/shopping.func.php b/display/functions/shopping.func.php new file mode 100644 index 0000000..1019d19 --- /dev/null +++ b/display/functions/shopping.func.php @@ -0,0 +1,43 @@ + + +
+ +
+

>

+
+
+ +
+
+ +
+
+ + \ No newline at end of file diff --git a/display/next.nav.func.php b/display/next.nav.func.php new file mode 100644 index 0000000..bc813c2 --- /dev/null +++ b/display/next.nav.func.php @@ -0,0 +1,31 @@ + + + + + \ No newline at end of file diff --git a/display/prev.nav.func.php b/display/prev.nav.func.php new file mode 100644 index 0000000..f7b36c9 --- /dev/null +++ b/display/prev.nav.func.php @@ -0,0 +1,30 @@ + +
+ title="go back" role="button"> + arrow_back + +
+ + + diff --git a/entry.php b/entry.php new file mode 100644 index 0000000..716670d --- /dev/null +++ b/entry.php @@ -0,0 +1,138 @@ +booktitle; + $keywords=$bookbo->tags; + +?> + + + + + + + + + +
+
+
+ +
+
+ + +
+

booktitle; ?>

+
+
+ +
+ author; ?> + publisher; ?> +
+
+
+ favorite + favorites +
+
+ bookmark + bookmark +
+
+ share + share +
+
+ +
+

+ bookdesc;?> +

+
+ +
+ +
+
+ username." For above book";?> +
+
+ +
+ get_comment($ids,$comment); + $comobj->check_exist(); + $comobj->add_comment(); + } + } + + include 'display/forms/comment.form.php'; + + // including the comments + include 'display/functions/comment.func.php'; + include 'dbms/dbms_imp.php'; + $resultc=$connection->query("SELECT `cid` FROM `comments` WHERE `bookid`='$ids' ORDER BY `cid` DESC"); + mysqli_close($connection); + + while ($rows=$resultc->fetch_array()) + { + $comm = new comment($rows[0]); + comment($comm); + } + ?> +
+
+ +
+ +
+ +
+ booktitle;?> + +
+ + diff --git a/error.php b/error.php index 82f39a0..feac465 100644 --- a/error.php +++ b/error.php @@ -1,18 +1,18 @@ - - - - - -