Exemplo n.º 1
0
            $tabledata[$i]['COMMENT_COUNT'] = $coms->count();
            $tabledata[$i]['COMMENT_LINK'] = $coms->link($link);
            $tabledata[$i]['DISPLAY_COMMENTS'] = 1;
            if (in_template(array('VIDEO.COMMENT_LAST_USERID', 'VIDEO.COMMENT_LAST_NAME', 'VIDEO.COMMENT_LAST_TIME'), $parse)) {
                $tabledata[$i]['COMMENT_LAST_USERID'] = $coms->last_userid();
                $tabledata[$i]['COMMENT_LAST_NAME'] = $coms->last_name();
                $tabledata[$i]['COMMENT_LAST_TIME'] = $coms->last_time();
            }
        }
        //Bewertungen
        if ($apx->is_module('ratings') && $set['videos']['ratings'] && $res['allowrating']) {
            require_once BASEDIR . getmodulepath('ratings') . 'class.ratings.php';
            if (!isset($rate)) {
                $rate = new ratings('videos', $res['id']);
            } else {
                $rate->mid = $res['id'];
            }
            $tabledata[$i]['RATING'] = $rate->display();
            $tabledata[$i]['RATING_VOTES'] = $rate->count();
            $tabledata[$i]['DISPLAY_RATING'] = 1;
        }
    }
}
//Sortby
ordervars($orderdef, mklink('videos.php?catid=' . $_REQUEST['catid'], 'videos,' . $_REQUEST['catid'] . ',1.html'));
$apx->tmpl->assign('VIDEO', $tabledata);
$apx->tmpl->parse('index');
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_end.php';
/////////////////////////////////////////////////////////// SCRIPT BEENDEN ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
Exemplo n.º 2
0
            //Custom-Felder
            for ($ii = 1; $ii <= 10; $ii++) {
                $tabledata[$i]['CUSTOM' . $ii . '_NAME'] = $set['user']['cusfield_names'][$ii - 1];
                $tabledata[$i]['CUSTOM' . $ii] = compatible_hsc($res['custom' . $ii]);
            }
            //Forumbeiträge
            if ($apx->is_module('forum')) {
                $tabledata[$i]['FORUMPOSTS'] = $res['forum_posts'];
            }
            $tabledata[$i]['LINK_BUDDY'] = iif($user->info['userid'] && !$user->is_buddy($res['userid']), mklink('user.php?action=addbuddy&amp;id=' . $res['userid'], 'user,addbuddy,' . $res['userid'] . '.html'));
            $tabledata[$i]['LINK_SENDPM'] = iif($user->info['userid'], mklink('user.php?action=newpm&amp;touser='******'userid'], 'user,newpm,' . $res['userid'] . '.html'));
            $tabledata[$i]['LINK_SENDEMAIL'] = iif($user->info['userid'] || $set['user']['sendmail_guests'], mklink('user.php?action=newmail&amp;touser='******'userid'], 'user,newmail,' . $res['userid'] . '.html'));
        }
    }
    //Sortieren nach...
    ordervars($orderdef, mklink('user.php?action=search&amp;searchid=' . $_REQUEST['searchid'], 'user,search.html?searchid=' . $_REQUEST['searchid']));
    $apx->tmpl->assign('USER', $tabledata);
} else {
    $_POST['gender'] = 0;
    $_POST['distance'] = 25;
}
//Formular erzeugen
$apx->tmpl->assign('ITEM', compatible_hsc($_POST['item']));
$apx->tmpl->assign('AGE_MIN', intval($_POST['age_min']));
$apx->tmpl->assign('AGE_MAX', intval($_POST['age_max']));
$apx->tmpl->assign('GENDER', intval($_POST['gender']));
$apx->tmpl->assign('CITY', compatible_hsc($_POST['city']));
$apx->tmpl->assign('PLZ', compatible_hsc($_POST['plz']));
$apx->tmpl->assign('DISTANCE', intval($_POST['distance']));
$apx->tmpl->assign('ONLINE', intval($_POST['online']));
$postto = mklink('user.php?action=search', 'user,search.html');
Exemplo n.º 3
0
                $tabledata[$i]['COMMENT_LAST_TIME'] = $coms->last_time();
            }
        }
        //Bewertungen
        if ($apx->is_module('ratings') && $set['products']['ratings'] && $res['allowrating']) {
            require_once BASEDIR . getmodulepath('ratings') . 'class.ratings.php';
            if (!isset($rate)) {
                $rate = new ratings('products', $res['id']);
            } else {
                $rate->mid = $res['id'];
            }
            $tabledata[$i]['RATING'] = $rate->display();
            $tabledata[$i]['RATING_VOTES'] = $rate->count();
            $tabledata[$i]['DISPLAY_RATING'] = 1;
        }
    }
}
//Sortieren nach...
ordervars($orderdef, mklink('user.php?action=collection&amp;id=' . $profileInfo['userid'] . '&amp;type=' . $_REQUEST['type'], 'user,collection,' . $profileInfo['userid'] . ',' . $_REQUEST['type'] . ',1.html'));
//Nach Produkttyp filtern
$apx->tmpl->assign('LINK_SHOWALL', mklink('user.php?action=collection&amp;id=' . $profileInfo['userid'], 'user,collection,' . $profileInfo['userid'] . ',0,1.html'));
$apx->tmpl->assign('LINK_SHOWNORMAL', mklink('user.php?action=collection&amp;id=' . $profileInfo['userid'] . '&amp;type=normal', 'user,collection,' . $profileInfo['userid'] . ',normal,1.html'));
$apx->tmpl->assign('LINK_SHOWGAME', mklink('user.php?action=collection&amp;id=' . $profileInfo['userid'] . '&amp;type=game', 'user,collection,' . $profileInfo['userid'] . ',game,1.html'));
$apx->tmpl->assign('LINK_SHOWSOFTWARE', mklink('user.php?action=collection&amp;id=' . $profileInfo['userid'] . '&amp;type=software', 'user,collection,' . $profileInfo['userid'] . ',software,1.html'));
$apx->tmpl->assign('LINK_SHOWHARDWARE', mklink('user.php?action=collection&amp;id=' . $profileInfo['userid'] . '&amp;type=hardware', 'user,collection,' . $profileInfo['userid'] . ',hardware,1.html'));
$apx->tmpl->assign('LINK_SHOWMUSIC', mklink('user.php?action=collection&amp;id=' . $profileInfo['userid'] . '&amp;type=music', 'user,collection,' . $profileInfo['userid'] . ',music,1.html'));
$apx->tmpl->assign('LINK_SHOWMOVIE', mklink('user.php?action=collection&amp;id=' . $profileInfo['userid'] . '&amp;type=movie', 'user,collection,' . $profileInfo['userid'] . ',movie,1.html'));
$apx->tmpl->assign('LINK_SHOWBOOK', mklink('user.php?action=collection&amp;id=' . $profileInfo['userid'] . '&amp;type=book', 'user,collection,' . $profileInfo['userid'] . ',book,1.html'));
$apx->tmpl->assign('TYPE', iif($_REQUEST['type'], $_REQUEST['type'], ''));
$apx->tmpl->assign('PRODUCT', $tabledata);
$apx->tmpl->parse('collection');
Exemplo n.º 4
0
            } else {
                $rate->mid = $res['threadid'];
            }
            $pre['RATING'] = $rate->display();
            $pre['RATING_VOTES'] = $rate->count();
            $pre['DISPLAY_RATING'] = 1;
        }
        if ($res['sticky'] && !$res['del']) {
            $pinneddata[] = $pre;
        } else {
            $threaddata[] = $pre;
        }
    }
}
//Sortieren nach...
ordervars($orderdef, mkrellink('forum.php?id=' . $foruminfo['forumid'], 'forum,' . $foruminfo['forumid'] . ',1' . urlformat($foruminfo['title']) . '.html'));
//Moderatoren
if (count($foruminfo['moderator'])) {
    $data = $db->fetch("SELECT userid,username FROM " . PRE . "_user WHERE userid IN (" . implode(',', $foruminfo['moderator']) . ") ORDER BY username ASC");
    if (count($data)) {
        foreach ($data as $res) {
            ++$i;
            $moddata[$i]['USERID'] = $res['userid'];
            $moddata[$i]['USERNAME'] = $res['username'];
        }
    }
}
//Hot-Parameter in Sprachplatzhalter
$langvar = strtr($apx->lang->get('HOTTHREAD'), array('{HOT_POSTS}' => $set['forum']['hot_posts'], '{HOT_VIEWS}' => $set['forum']['hot_views']));
$apx->lang->langpack['HOTTHREAD'] = $langvar;
//Optionen-Links
Exemplo n.º 5
0
        $tabledata[$i]['LASTACTIVE'] = $res['lastactive'];
        $tabledata[$i]['AVATAR'] = $user->mkavatar($res);
        $tabledata[$i]['AVATAR_TITLE'] = $user->mkavtitle($res);
        $tabledata[$i]['BIRTHDAY'] = $birthday;
        $tabledata[$i]['AGE'] = $age;
        if (in_array('USER.ISBUDDY', $parse)) {
            $tabledata[$i]['ISBUDDY'] = $user->is_buddy($res['userid']);
        }
        //Custom-Felder
        for ($ii = 1; $ii <= 10; $ii++) {
            $tabledata[$i]['CUSTOM' . $ii . '_NAME'] = $set['user']['cusfield_names'][$ii - 1];
            $tabledata[$i]['CUSTOM' . $ii] = compatible_hsc($res['custom' . $ii]);
        }
        //Interaktions-Links
        if ($user->info['userid']) {
            $tabledata[$i]['LINK_SENDPM'] = mklink('user.php?action=newpm&amp;touser='******'userid'], 'user,newpm,' . $res['userid'] . '.html');
            $tabledata[$i]['LINK_SENDEMAIL'] = mklink('user.php?action=newmail&amp;touser='******'userid'], 'user,newmail,' . $res['userid'] . '.html');
            if (in_array('USER.LINK_BUDDY', $parse) && $userid != $user->info['userid'] && !$user->is_buddy($res['userid'])) {
                $tabledata[$i]['LINK_BUDDY'] = mklink('user.php?action=addbuddy&amp;id=' . $res['userid'], 'user,addbuddy,' . $res['userid'] . '.html');
            }
        }
        //Forumbeiträge
        if ($apx->is_module('forum')) {
            $tabledata[$i]['FORUMPOSTS'] = $res['forum_posts'];
        }
    }
}
//Sortieren nach...
ordervars($orderdef, mklink('user.php?action=list&amp;letter=' . $_REQUEST['letter'], 'user,list,' . $_REQUEST['letter'] . ',1.html'));
$apx->tmpl->assign('USER', $tabledata);
$apx->tmpl->parse('list');
Exemplo n.º 6
0
            $tabledata[$i]['COMMENT_COUNT'] = $coms->count();
            $tabledata[$i]['COMMENT_LINK'] = $coms->link($link);
            $tabledata[$i]['DISPLAY_COMMENTS'] = 1;
            if (in_template(array('DOWNLOAD.COMMENT_LAST_USERID', 'DOWNLOAD.COMMENT_LAST_NAME', 'DOWNLOAD.COMMENT_LAST_TIME'), $parse)) {
                $tabledata[$i]['COMMENT_LAST_USERID'] = $coms->last_userid();
                $tabledata[$i]['COMMENT_LAST_NAME'] = $coms->last_name();
                $tabledata[$i]['COMMENT_LAST_TIME'] = $coms->last_time();
            }
        }
        //Bewertungen
        if ($apx->is_module('ratings') && $set['downloads']['ratings'] && $res['allowrating']) {
            require_once BASEDIR . getmodulepath('ratings') . 'class.ratings.php';
            if (!isset($rate)) {
                $rate = new ratings('downloads', $res['id']);
            } else {
                $rate->mid = $res['id'];
            }
            $tabledata[$i]['RATING'] = $rate->display();
            $tabledata[$i]['RATING_VOTES'] = $rate->count();
            $tabledata[$i]['DISPLAY_RATING'] = 1;
        }
    }
}
//Sortby
ordervars($orderdef, mklink('downloads.php?catid=' . $_REQUEST['catid'], 'downloads,' . $_REQUEST['catid'] . ',1.html'));
$apx->tmpl->assign('DOWNLOAD', $tabledata);
$apx->tmpl->parse('index');
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_end.php';
/////////////////////////////////////////////////////////// SCRIPT BEENDEN ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
Exemplo n.º 7
0
        $tabledata[$i]['PICTURE_POPUP'] = $picture_popup;
        $tabledata[$i]['PICTURE_POPUPPATH'] = $picture_popuppath;
        $tabledata[$i]['FULLNAME'] = $res['fullname'];
        $tabledata[$i]['ADDRESS'] = $res['address'];
        $tabledata[$i]['EMAIL'] = $res['email'];
        $tabledata[$i]['EMAIL_ENCRYPTED'] = cryptMail($res['email']);
        $tabledata[$i]['PHONE'] = $res['phone'];
        //Nur Firma
        if ($res['type'] == 'company') {
            $tabledata[$i]['FOUNDER'] = $res['founder'];
            $tabledata[$i]['FOUNDING_YEAR'] = $res['founding_year'];
            $tabledata[$i]['FOUNDING_COUNTRY'] = $res['founding_country'];
            $tabledata[$i]['LEGALFORM'] = $res['legalform'];
            $tabledata[$i]['HEADQUATERS'] = $res['headquaters'];
            $tabledata[$i]['EXECUTIVE'] = $res['executive'];
            $tabledata[$i]['EMPLOYEES'] = $res['employees'];
            $tabledata[$i]['TURNOVER'] = $res['turnover'];
            $tabledata[$i]['SECTOR'] = $res['sector'];
            $tabledata[$i]['PRODUCTS'] = $res['products'];
        }
    }
}
//Sortieren nach...
ordervars($orderdef, mklink('manufacturers.php?letter=' . $_REQUEST['letter'], 'manufacturers,' . $_REQUEST['letter'] . ',1.html'));
$apx->tmpl->assign('SEARCH_POSTTO', mklink('manufacturers.php', 'manufacturers.html'));
$apx->tmpl->assign('MANU', $tabledata);
$apx->tmpl->parse('manufacturers_index');
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_end.php';
/////////////////////////////////////////////////////////// SCRIPT BEENDEN ///
////////////////////////////////////////////////////////////////////////////////////////////////////////
Exemplo n.º 8
0
             //Bewertungen
             if ($apx->is_module('ratings') && $set['forum']['ratings']) {
                 require_once BASEDIR . getmodulepath('ratings') . 'class.ratings.php';
                 if (!isset($rate)) {
                     $rate = new ratings('forum', $res['threadid']);
                 } else {
                     $rate->mid = $res['threadid'];
                 }
                 $threaddata[$i]['RATING'] = $rate->display();
                 $threaddata[$i]['RATING_VOTES'] = $rate->count();
                 $threaddata[$i]['DISPLAY_RATING'] = 1;
             }
         }
     }
     //Sortieren nach...
     ordervars($orderdef, 'search.php?search=' . $search['id'] . '&amp;hash=' . $_REQUEST['hash']);
     //Hot-Parameter in Sprachplatzhalter
     $langvar = strtr($apx->lang->get('HOTTHREAD'), array('{HOT_POSTS}' => $set['forum']['hot_posts'], '{HOT_VIEWS}' => $set['forum']['hot_views']));
     $apx->lang->langpack['HOTTHREAD'] = $langvar;
     $apx->tmpl->assign('HOT_POSTS', $set['forum']['hot_posts']);
     $apx->tmpl->assign('HOT_VIEWS', $set['forum']['hot_views']);
     $apx->tmpl->assign('IGNORED', implode(', ', $ignored));
     $apx->tmpl->assign('SEARCHTIME', round($search['time'], 2));
     $apx->tmpl->assign('THREAD', $threaddata);
     $apx->tmpl->parse('search_result_threads');
 }
 /////////////////////////////////////
 $apx->tmpl->assign('PATHEND', $apx->lang->get('HEADLINE_SEARCHRESULT'));
 titlebar($apx->lang->get('HEADLINE_SEARCHRESULT'));
 require 'lib/_end.php';
 require '../lib/_end.php';
Exemplo n.º 9
0
        //Bewertungen
        if ($apx->is_module('ratings') && $set['products']['ratings'] && $res['allowrating']) {
            require_once BASEDIR . getmodulepath('ratings') . 'class.ratings.php';
            if (!isset($rate)) {
                $rate = new ratings('products', $res['id']);
            } else {
                $rate->mid = $res['id'];
            }
            $tabledata[$i]['RATING'] = $rate->display();
            $tabledata[$i]['RATING_VOTES'] = $rate->count();
            $tabledata[$i]['DISPLAY_RATING'] = 1;
        }
    }
}
//Sortieren nach...
ordervars($orderdef, mklink('products.php?type=' . $_REQUEST['type'] . '&amp;letter=' . $_REQUEST['letter'], 'products,' . $_REQUEST['type'] . ',' . $_REQUEST['letter'] . ',1.html'));
//Nach Produkttyp filtern
$apx->tmpl->assign('LINK_SHOWALL', mklink('products.php', 'products,0,0,1.html'));
$apx->tmpl->assign('LINK_SHOWNORMAL', mklink('products.php?type=normal', 'products,normal,0,1.html'));
$apx->tmpl->assign('LINK_SHOWGAME', mklink('products.php?type=game', 'products,game,0,1.html'));
$apx->tmpl->assign('LINK_SHOWSOFTWARE', mklink('products.php?type=software', 'products,software,0,1.html'));
$apx->tmpl->assign('LINK_SHOWHARDWARE', mklink('products.php?type=hardware', 'products,hardware,0,1.html'));
$apx->tmpl->assign('LINK_SHOWMUSIC', mklink('products.php?type=music', 'products,music,0,1.html'));
$apx->tmpl->assign('LINK_SHOWMOVIE', mklink('products.php?type=movie', 'products,movie,0,1.html'));
$apx->tmpl->assign('LINK_SHOWBOOK', mklink('products.php?type=book', 'products,book,0,1.html'));
$apx->tmpl->assign('TYPE', iif($_REQUEST['type'], $_REQUEST['type'], ''));
$apx->tmpl->assign('PRODUCT', $tabledata);
$apx->tmpl->assign('SEARCH_POSTTO', mklink('products.php', 'products.html'));
$apx->tmpl->parse('index');
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_end.php';
Exemplo n.º 10
0
        $tabledata[$i]['ID'] = $res['id'];
        $tabledata[$i]['SUBJECT'] = $res['subject'];
        $tabledata[$i]['TIME'] = $res['time'];
        $tabledata[$i]['NEW'] = iif(!$res['isread'], 1, 0);
        $tabledata[$i]['READPM'] = mklink('user.php?action=readpm&amp;id=' . $res['id'], 'user,readpm,' . $res['id'] . '.html');
        if ($_REQUEST['dir'] == 'out') {
            $tabledata[$i]['RECIEVER'] = $res['username'];
            $tabledata[$i]['RECIEVER_ID'] = $res['userid'];
        } else {
            $tabledata[$i]['SENDER'] = $res['username'];
            $tabledata[$i]['SENDER_ID'] = $res['userid'];
            $tabledata[$i]['MARKREAD'] = mklink('user.php?action=pms&amp;dir=in&amp;read=' . $res['id'], 'user,pms,in.html?read=' . $res['id']);
            $tabledata[$i]['MARKUNREAD'] = mklink('user.php?action=pms&amp;dir=in&amp;unread=' . $res['id'], 'user,pms,in.html?unread=' . $res['id']);
        }
    }
}
//LINKS
$inbox = mklink('user.php?action=pms&amp;dir=in', 'user,pms,in.html');
$outbox = mklink('user.php?action=pms&amp;dir=out', 'user,pms,out.html');
$newpm = mklink('user.php?action=newpm', 'user,newpm.html');
$apx->tmpl->assign('SPACE', $space);
$apx->tmpl->assign('SPACE_PERCENT', $percent);
$apx->tmpl->assign('SPACE_WIDTH', $width);
$apx->tmpl->assign('LINK_INBOX', $inbox);
$apx->tmpl->assign('LINK_OUTBOX', $outbox);
$apx->tmpl->assign('LINK_NEWPM', $newpm);
$apx->tmpl->assign('DIR', $_REQUEST['dir']);
$apx->tmpl->assign('MESSAGE', $tabledata);
//Sortierung
ordervars($orderdef, mklink('user.php?action=pms&amp;dir=' . $_REQUEST['dir'], 'user,pms,' . $_REQUEST['dir'] . '.html'));
$apx->tmpl->parse('pms');