Esempio n. 1
0
require_once $_SERVER['DOCUMENT_ROOT'] . '/facebook/include/ajax.require.php';
$online = new PDOConnection();
$mangaDetails = new MangaReader(array($site[STORE], $_POST['name']));
$manga['name'] = rawurlencode($_POST['name']) . '/';
foreach ($mangaDetails->getArray() as $mlist) {
    if (is_file($mlist['path'])) {
        list($filename, $fileextended) = explode('.', $mlist['name']);
        if ($filename == 'thumb') {
            $manga['thumb'] = $mangaDetails->getDomain() . $mlist['name'];
        }
    }
}
if (!isset($manga['thumb'])) {
    $manga['thumb'] = 'http://hakko.9friend.net/images/none-thumb.jpg';
}
$manga['view'] = $online->GetValue('view', 'manga', 'mag_id', $_POST['id']);
$manga['online'] = $online->CountRow('user_online', 'mag_id', $_POST['id']);
?>

<a href="<?php 
echo $online->GetValue('link', 'manga', 'mag_id', $_POST['id']);
?>
"><h2><?php 
echo $_POST['name'];
?>
</h2>
<table width="230" border="0" cellpadding="2" cellspacing="0" class="manga-list">
  <tr>
    <td width="50"><div class="thumb-img" style="width:40px;height:40px;">
    <fb:tag name="img">
       <fb:tag-attribute name="src"><?php 
Esempio n. 2
0
 public function GetBlogID($blog)
 {
     return parent::GetValue('blogid', 'blog', 'title', $blog);
 }
Esempio n. 3
0
 public function StringGroup($table, $mag_id, $tableget, $colomnget, $column, $value)
 {
     $item = array();
     foreach (parent::ViewTableWhere($table, 'mag_id', $mag_id, 0, 0) as $group) {
         $tmpName = parent::GetValue($value, $tableget, $colomnget, $group[$column]);
         $found = true;
         foreach ($item as $tmp) {
             if ($tmp == $tmpName) {
                 $found = false;
             }
         }
         if ($found) {
             $item[] = $tmpName;
         }
     }
     sort($item);
     $stringGroup = '';
     $itemCount = count($item);
     foreach ($item as $index => $tostring) {
         $stringGroup .= '<a href="' . self::BuildQuery(array('component' => 'translator', $tableget => $tostring)) . '">' . $tostring . '</a>';
         if ($itemCount > $index + 1) {
             $stringGroup .= ', ';
         }
     }
     return $stringGroup;
 }