-
Notifications
You must be signed in to change notification settings - Fork 11
/
sysmybooks.php
executable file
·35 lines (29 loc) · 1.12 KB
/
sysmybooks.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
include_once './common.php';
$pageTitle = $pageTitle." - "."مكتبتي";
function showBody(){
$booksIDs = array();
foreach ($_COOKIE as $key => $value) {
if(HS($key, "pageid_of_book")) {
$bookID = replace($key, "pageid_of_book", "");
$bookInfo = UtilityDB::getBookInfo($bookID);
if($bookInfo!==false) {
$booksIDs[$bookID] = $bookInfo["title"];
}
}
}
echo "<div class='hint'>تتطلب خدمة مكتبتي أن لا يوقف المستخدم خاصية الـ (cookies) أو أن يتأكد من تشغيلها في متصفح الإنترنت.</div>";
foreach($booksIDs as $bookID=>$title){
$titleID = replace($title, " ", "_");
$title = shortText($title);
echo "<div id='book$bookID' class='book boxitem boxsmallertext'><a href='javascript:clearMyBook($bookID);' style='color:darkred;'>(clear)</a><br/><a href='book/$titleID'>$title</a></div>";
}
}
function showMainBar() {
?>
<div class="mainbarsection mainbartextsection">
<h1>مكتبتي</h1>
</div>
<?php
}
?>