Esempio n. 1
0
<?php

require_once "../../../maincore.php";
require_once INFUSIONS . "al_rent_calendar/infusion_db.php";
if (file_exists(INFUSIONS . "al_rent_calendar/locale/" . $settings['locale'] . ".php")) {
    include INFUSIONS . "al_rent_calendar/locale/" . $settings['locale'] . ".php";
} else {
    include INFUSIONS . "al_rent_calendar/locale/Russian.php";
}
require_once INFUSIONS . "al_rent_calendar/includes/functions.php";
require_once THEMES . "templates/admin_header.php";
if (!checkAdminPageAccess('ALRC')) {
    redirect(BASEDIR);
}
$denied_albums = array(1, 2, 9);
opentable($locale['alrc9']);
echo "<div style='width:100%;text-align:center;'>";
$result = dbquery("SELECT * FROM " . DB_PHOTO_ALBUMS . " WHERE album_id NOT IN (" . implode(',', $denied_albums) . ")");
if (dbrows($result)) {
    echo "<form method='post' action='" . FUSION_SELF . $aidlink . "'>";
    echo "<select name='id'>";
    while ($data = dbarray($result)) {
        echo "<option value='" . $data['album_id'] . "'>" . $data['album_title'] . "</option>";
    }
    echo "</select> <input type='submit' name='edit' value='" . $locale['alrc10'] . "' />";
    echo "</form>";
} else {
    echo $locale['alrc11'];
}
echo "</div>";
closetable();
Esempio n. 2
0
<?php

require_once "../../../maincore.php";
require_once INFUSIONS . "al_tourney/infusion_db.php";
if (file_exists(INFUSIONS . "al_tourney/locale/" . $settings['locale'] . ".php")) {
    include INFUSIONS . "al_tourney/locale/" . $settings['locale'] . ".php";
} else {
    include INFUSIONS . "al_tourney/locale/English.php";
}
require_once INFUSIONS . "al_tourney/includes/functions.php";
require_once THEMES . "templates/admin_header.php";
if (!checkAdminPageAccess("T")) {
    redirect(BASEDIR . "index.php");
}
if (isset($_GET['p']) && $_GET['p'] != "" && file_exists(INFUSIONS . "al_tourney/admin/" . $_GET['p'] . ".php")) {
    require_once INFUSIONS . "al_tourney/admin/" . $_GET['p'] . ".php";
} else {
    redirect(INFUSIONS . "al_tourney/admin/index.php" . $aidlink . "&p=main");
}
require_once THEMES . "templates/footer.php";
Esempio n. 3
0
<?php

require_once "../../maincore.php";
require_once THEMES . "templates/admin_header.php";
require_once INFUSIONS . "al_calendar_panel/infusion_db.php";
if (file_exists(INFUSIONS . "al_calendar_panel/locale/" . $settings['locale'] . ".php")) {
    include INFUSIONS . "al_calendar_panel/locale/" . $settings['locale'] . ".php";
} else {
    include INFUSIONS . "al_calendar_panel/locale/Russian.php";
}
if (!checkAdminPageAccess("ALCR")) {
    redirect(START_PAGE);
}
if (isset($_POST['update'])) {
    $user_group = isset($_POST['user_group']) && isnum($_POST['user_group']) ? $_POST['user_group'] : 0;
    $admin_group = isset($_POST['admin_group']) && isnum($_POST['admin_group']) ? $_POST['admin_group'] : 0;
    $result = dbquery("UPDATE " . DB_AL_CALENDAR_SETTINGS . " SET calendar_user_group='" . $user_group . "', calendar_admin_group='" . $admin_group . "'");
    redirect(FUSION_SELF . $aidlink);
}
if (isset($_POST['add_admin'])) {
    if (isset($_POST['user_id']) && isnum($_POST['user_id'])) {
        if (dbrows(dbquery("SELECT * FROM " . DB_USERS . " WHERE user_id='" . $_POST['user_id'] . "'"))) {
            if (!dbrows(dbquery("SELECT * FROM " . DB_AL_CALENDAR_ADMINS . " WHERE alcr_admin_user='******'user_id'] . "'"))) {
                dbquery("INSERT INTO " . DB_AL_CALENDAR_ADMINS . " (alcr_admin_user) VALUES ('" . $_POST['user_id'] . "')");
            }
        }
    }
    redirect(FUSION_SELF . $aidlink);
}
if (isset($_GET['action']) && $_GET['action'] == "del" && isset($_GET['id']) && isnum($_GET['id'])) {
    if (dbrows(dbquery("SELECT * FROM " . DB_AL_CALENDAR_ADMINS . " WHERE alcr_admin_id='" . $_GET['id'] . "'"))) {
Esempio n. 4
0
<?php

require_once "../../maincore.php";
require_once THEMES . "templates/admin_header.php";
include INFUSIONS . "al_content_panel/infusion_db.php";
if (!defined("IN_FUSION")) {
    die("access denied");
}
if (file_exists(INFUSIONS . "al_content_panel/locale/" . $settings['locale'] . ".php")) {
    include INFUSIONS . "al_content_panel/locale/" . $settings['locale'] . ".php";
} else {
    include INFUSIONS . "al_content_panel/locale/Russian.php";
}
if (!checkAdminPageAccess("CO")) {
    redirect(START_PAGE);
}
if (isset($_POST['co_update'])) {
    $len = isset($_POST['len']) && isnum($_POST['len']) ? $_POST['len'] : 100;
    $upd = dbquery("UPDATE " . DB_CO_SETTINGS . " SET co_time='" . $_POST['time'] . "', co_len='" . $len . "', co_news='" . $_POST['cnews'] . "', co_articles='" . $_POST['carticles'] . "', co_comments='" . $_POST['ccomments'] . "', co_photos='" . $_POST['cphotos'] . "', co_downloads='" . $_POST['cdownloads'] . "', co_forums='" . $_POST['cforums'] . "', co_weblinks='" . $_POST['cweblinks'] . "'");
    redirect(INFUSIONS . "al_content_panel/admin.php" . $aidlink);
}
$csettings = dbarray(dbquery("SELECT * FROM " . DB_CO_SETTINGS . ""));
opentable($locale['co3']);
echo "<form method='post' name='gfhhf'>";
echo "<table width='100%'>";
echo "<tr><td class='tbl2' width='250'>" . $locale['co4'] . "</td><td class='tbl2'><select name='time'><option value='12'" . ($csettings['co_time'] == "12" ? " selected='selected'" : "") . ">12</option><option value='24'" . ($csettings['co_time'] == "24" ? " selected='selected'" : "") . ">24</option><option value='48'" . ($csettings['co_time'] == "48" ? " selected='selected'" : "") . ">48</option><option value='72'" . ($csettings['co_time'] == "72" ? " selected='selected'" : "") . ">72</option></select></td></tr>";
echo "<tr><td class='tbl2' width='250'>" . $locale['co5'] . "</td><td class='tbl2'><input type='text' name='len' class='textbox' size='3' value='" . $csettings['co_len'] . "' /></td></tr>";
echo "<tr><td class='tbl2' width='250'>" . $locale['co6'] . "</td><td class='tbl2'><select name='cnews'><option value='1'" . ($csettings['co_news'] == "1" ? " selected='selected'" : "") . ">Yes</option><option value='0'" . ($csettings['co_news'] == "0" ? " selected='selected'" : "") . ">No</option></select></td></tr>";
echo "<tr><td class='tbl2' width='250'>" . $locale['co7'] . "</td><td class='tbl2'><select name='carticles'><option value='1'" . ($csettings['co_articles'] == "1" ? " selected='selected'" : "") . ">Yes</option><option value='0'" . ($csettings['co_articles'] == "0" ? " selected='selected'" : "") . ">No</option></select></td></tr>";
echo "<tr><td class='tbl2' width='250'>" . $locale['co8'] . "</td><td class='tbl2'><select name='ccomments'><option value='1'" . ($csettings['co_comments'] == "1" ? " selected='selected'" : "") . ">Yes</option><option value='0'" . ($csettings['co_comments'] == "0" ? " selected='selected'" : "") . ">No</option></select></td></tr>";
echo "<tr><td class='tbl2' width='250'>" . $locale['co9'] . "</td><td class='tbl2'><select name='cforums'><option value='1'" . ($csettings['co_forums'] == "1" ? " selected='selected'" : "") . ">Yes</option><option value='0'" . ($csettings['co_forums'] == "0" ? " selected='selected'" : "") . ">No</option></select></td></tr>";
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../../maincore.php";
require_once THEMES . "templates/admin_header.php";
include INFUSIONS . "ulogin/infusion_db.php";
if (!defined("IN_FUSION")) {
    die("access denied");
}
if (file_exists(INFUSIONS . "ulogin/locale/" . $settings['locale'] . "_admin.php")) {
    include INFUSIONS . "ulogin/locale/" . $settings['locale'] . "_admin.php";
} else {
    include INFUSIONS . "ulogin/locale/English_admin.php";
}
if (!checkAdminPageAccess("ULG")) {
    redirect(START_PAGE);
}
$networks = array(1 => "vkontakte", "facebook", "google", "twitter", "odnoklassniki", "mailru", "yandex", "livejournal", "openid", "lastfm", "linkedin", "liveid", "soundcloud", "steam", "flickr", "vimeo", "youtube", "webmoney");
if (isset($_POST['ula_update'])) {
    $upd = dbquery("UPDATE " . DB_ULOGIN_SETTINGS . " SET u_use_ajax='" . $_POST['u_use_ajax'] . "', u_vkontakte='" . $_POST['u_vkontakte'] . "',u_facebook='" . $_POST['u_facebook'] . "',u_google='" . $_POST['u_google'] . "',u_twitter='" . $_POST['u_twitter'] . "',u_odnoklassniki='" . $_POST['u_odnoklassniki'] . "',u_mailru='" . $_POST['u_mailru'] . "',u_yandex='" . $_POST['u_yandex'] . "',u_livejournal='" . $_POST['u_livejournal'] . "',u_openid='" . $_POST['u_openid'] . "',u_lastfm='" . $_POST['u_lastfm'] . "',u_linkedin='" . $_POST['u_linkedin'] . "',u_liveid='" . $_POST['u_liveid'] . "',u_soundcloud='" . $_POST['u_soundcloud'] . "',u_steam='" . $_POST['u_steam'] . "',u_flickr='" . $_POST['u_flickr'] . "',u_vimeo='" . $_POST['u_vimeo'] . "',u_youtube='" . $_POST['u_youtube'] . "',u_webmoney='" . $_POST['u_webmoney'] . "'");
    redirect(INFUSIONS . "ulogin/ulogin_admin.php" . $aidlink);
}
$usettings = dbarray(dbquery("SELECT * FROM " . DB_ULOGIN_SETTINGS . ""));
opentable($locale['ula3']);
echo "<form method='post' name='gfhhf'>";
echo "<table width='100%'>";
echo "<tr><td class='tbl2' width='250'>" . $locale['ula4'] . "</td><td class='tbl2'><select name='u_use_ajax' disabled='desabled'><option value='1'" . ($usettings['u_use_ajax'] == "1" ? " selected='selected'" : "") . ">" . $locale['ula5'] . "</option><option value='0'" . ($usettings['u_use_ajax'] == "0" ? " selected='selected'" : "") . ">" . $locale['ula6'] . "</option></select></td></tr>";
for ($i = 1; $i <= 18; $i++) {
    echo "<tr><td class='tbl2' width='250'><img src='" . INFUSIONS . "ulogin/img/small/" . $networks[$i] . ".png' /> " . $locale['ulan' . $i] . "</td><td class='tbl2'><select name='u_" . $networks[$i] . "'><option value='1'" . ($usettings['u_' . $networks[$i]] == "1" ? " selected='selected'" : "") . ">" . $locale['ula7'] . "</option><option value='2'" . ($usettings['u_' . $networks[$i]] == "2" ? " selected='selected'" : "") . ">" . $locale['ula8'] . "</option><option value='3'" . ($usettings['u_' . $networks[$i]] == "3" ? " selected='selected'" : "") . ">" . $locale['ula9'] . "</option></select></td></tr>";
}
Esempio n. 6
0
<?php

require_once "../../../maincore.php";
require_once INFUSIONS . "al_genmem/infusion_db.php";
require_once THEMES . "templates/admin_header.php";
if (file_exists(INFUSIONS . "al_genmem/locale/" . $settings['locale'] . ".php")) {
    require_once INFUSIONS . "al_genmem/locale/" . $settings['locale'] . ".php";
} else {
    require_once INFUSIONS . "al_genmem/locale/Russian.php";
}
if (!checkAdminPageAccess("GEM")) {
    redirect(BASEDIR);
}
if (isset($_POST['update'])) {
    $mem_width = isset($_POST['mem_width']) && isnum($_POST['mem_width']) && $_POST['mem_width'] > 0 ? $_POST['mem_width'] : 800;
    $mem_height = isset($_POST['mem_height']) && isnum($_POST['mem_height']) && $_POST['mem_height'] > 0 ? $_POST['mem_height'] : 600;
    $dem_padding_top = isset($_POST['dem_padding_top']) && isnum($_POST['dem_padding_top']) && $_POST['dem_padding_top'] > 0 ? $_POST['dem_padding_top'] : 20;
    $dem_padding_side = isset($_POST['dem_padding_side']) && isnum($_POST['dem_padding_side']) && $_POST['dem_padding_side'] > 0 ? $_POST['dem_padding_side'] : 30;
    $dem_padding_bottom = isset($_POST['dem_padding_bottom']) && isnum($_POST['dem_padding_bottom']) && $_POST['dem_padding_bottom'] > 0 ? $_POST['dem_padding_bottom'] : 120;
    $dem_border = isset($_POST['dem_border']) && isnum($_POST['dem_border']) && $_POST['dem_border'] > 0 ? $_POST['dem_border'] : 3;
    $dem_after_border = isset($_POST['dem_after_border']) && isnum($_POST['dem_after_border']) && $_POST['dem_after_border'] > 0 ? $_POST['dem_after_border'] : 5;
    $update = dbquery("UPDATE " . DB_GEM_SETTINGS . " SET mem_width='" . $mem_width . "',mem_height='" . $mem_height . "',dem_padding_top='" . $dem_padding_top . "',dem_padding_side='" . $dem_padding_side . "',dem_padding_bottom='" . $dem_padding_bottom . "',dem_border='" . $dem_border . "',dem_after_border='" . $dem_after_border . "'");
    //print_r($_POST);
    redirect(FUSION_SELF . $aidlink);
}
$gm_settings = dbarray(dbquery("SELECT * FROM " . DB_GEM_SETTINGS));
opentable($locale['gem28']);
echo "<form action='" . FUSION_SELF . $aidlink . "' method='post'>";
echo "<table width='100%'>";
echo "<tr>";
echo "<td class='tbl' width='250'>" . $locale['gem29'] . "</td>";
Esempio n. 7
0
<?php

require_once "../../../maincore.php";
require_once THEMES . "templates/admin_header.php";
include INFUSIONS . "al_groups/infusion_db.php";
if (!defined("IN_FUSION")) {
    die("access denied");
}
if (file_exists(INFUSIONS . "al_group/locale/" . $settings['locale'] . ".php")) {
    include INFUSIONS . "al_groups/locale/" . $settings['locale'] . ".php";
} else {
    include INFUSIONS . "al_groups/locale/English.php";
}
require_once INFUSIONS . "al_groups/includes/functions.php";
if (!checkAdminPageAccess("GS")) {
    redirect(START_PAGE);
}
//nav
opentable($locale['gs5']);
showNav();
closetable();
if (!isset($_GET['p']) || $_GET['p'] == "" || !file_exists(INFUSIONS . "al_groups/admin/" . $_GET['p'] . ".php")) {
    //index
    opentable($locale['gs6']);
    echo $locale['gs7'];
    closetable();
} else {
    require_once INFUSIONS . "al_groups/admin/" . $_GET['p'] . ".php";
}
require_once THEMES . "templates/footer.php";
Esempio n. 8
0
<?php

require_once "../../../maincore.php";
require_once THEMES . "templates/admin_header.php";
require_once INFUSIONS . "al_catalog/infusion_db.php";
if (file_exists(AL_CATALOG_DIR . "locale/" . $settings['locale'] . ".php")) {
    include AL_CATALOG_DIR . "locale/" . $settings['locale'] . ".php";
} else {
    include AL_CATALOG_DIR . "locale/Russian.php";
}
add_to_head("<link rel='stylesheet' href='" . AL_CATALOG_DIR . "asset/catalog-styles.css' />");
if (!checkAdminPageAccess("CTG")) {
    redirect(START_PAGE);
}
opentable($locale['ctg3']);
echo "<div style='margin: 0 0 10px 10px;'>";
echo "<a class='button' href='" . FUSION_SELF . $aidlink . "&page=categories'>" . $locale['ctg16'] . "</a>&nbsp;";
echo "<a class='button' href='" . FUSION_SELF . $aidlink . "&page=items'>" . $locale['ctg17'] . "</a>&nbsp;";
echo "<a class='button' href='" . FUSION_SELF . $aidlink . "&page=settings'>" . $locale['ctg18'] . "</a>&nbsp;";
echo "</div>";
closetable();
if (!isset($_GET['page'])) {
} else {
    if (file_exists(AL_CATALOG_DIR . "admin/" . $_GET['page'] . ".php")) {
        require_once AL_CATALOG_DIR . "admin/" . $_GET['page'] . ".php";
    } else {
        echo 'No file found';
    }
}
require_once THEMES . "templates/footer.php";
Esempio n. 9
0
<?php

require_once "../../../maincore.php";
require_once THEMES . "templates/admin_header.php";
include INFUSIONS . "al_news_panel/infusion_db.php";
if (!defined("IN_FUSION")) {
    die("access denied");
}
if (file_exists(INFUSIONS . "al_news_panel/locale/" . $settings['locale'] . ".php")) {
    include INFUSIONS . "al_news_panel/locale/" . $settings['locale'] . ".php";
} else {
    include INFUSIONS . "al_news_panel/locale/Russian.php";
}
if (!checkAdminPageAccess("AN")) {
    redirect(START_PAGE);
}
//nav
opentable($locale['an3']);
/*
echo "<button class='button'><a href='".INFUSIONS."al_news_panel/admin/index.php".$aidlink."'>".$locale['an4']."</a></button>*/
echo "<button class='button'><a href='" . INFUSIONS . "al_news_panel/admin/index.php" . $aidlink . "&p=panel'>" . $locale['an5'] . "</a></button> <button class='button'><a href='" . INFUSIONS . "al_news_panel/admin/index.php" . $aidlink . "&p=news'>" . $locale['an6'] . "</a></button> ";
closetable();
if (!isset($_GET['p']) || $_GET['p'] == "" || !file_exists(INFUSIONS . "al_news_panel/admin/" . $_GET['p'] . ".php")) {
    //index
    /*opentable($locale['anecho $locale['an8'];
      closetable();*/
    redirect(INFUSIONS . "al_news_panel/admin/index.php" . $aidlink . "&p=news");
} else {
    require_once INFUSIONS . "al_news_panel/admin/" . $_GET['p'] . ".php";
}
require_once THEMES . "templates/footer.php";