Exemplo n.º 1
0
require_once 'yrms/class/function.php';
require_once './includes/functions_newpost.php';
require_once './includes/functions_threadmanage.php';
require_once './includes/functions_databuild.php';
$currentUserId = $vbulletin->userinfo['userid'];
if (!$currentUserId) {
    print_no_permission();
}
$shelltemplatename = 'yrms_navbar';
if (!isset($_REQUEST['do'])) {
    $_REQUEST['do'] = 'mangalist';
}
if ($_REQUEST['do'] == 'mangalist') {
    $pagetitle = $vbphrase['yrms_vietsubmangalist'];
    $manga = new Manga();
    $mangalist = $manga->mangalist($_GET['filter'], $_GET['keyword']);
    $contenttemplatename = 'yrms_vietsubmanga_manga_list';
}
if ($_REQUEST['do'] == 'mangamyproject') {
    $pagetitle = $vbphrase['yrms_myproject'];
    $manga = new Manga();
    $myprojects = $manga->myproject();
    $contenttemplatename = 'yrms_vietsubmanga_manga_myproject';
}
if ($_REQUEST['do'] == 'mangaadd') {
}
if ($_REQUEST['do'] == 'mangareward') {
    $pagetitle = $vbphrase['yrms_newmanga_award'];
    if (isset($_POST['submitted'])) {
        $manga = new Manga();
        $_POST['illustration'] = "[IMG={$vbulletin->options['yrms_main_illustrationwidth']}|]{$_POST['illustration']}[/IMG]";