Example #1
0
function picture_navigation_page_start()
{
    $superCage = Inspekt::makeSuperCage();
    if (!$superCage->get->keyExists('slideshow')) {
        js_include('plugins/picture_navigation/picture_navigation.js');
    }
}
Example #2
0
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

* 
*/
/**
 * @file
 * @brief  display the folders the user has no access and permit to add them 
 * thanks ajax call. 
 * 
 * The received parameter  are 
 *  - $a_dossier, the result of   Dossier::show_dossier
 *  - $user_id id of the user
 * 
 */
echo js_include('admin.js');
if (count($a_dossier) == 0) {
    echo '<h1 class="notice">' . _('Aucun dossier à afficher') . '</h1>';
    return;
}
?>
<table class="result">
<?php 
$nb_dossier = count($a_dossier);
for ($i = 0; $i < $nb_dossier; $i++) {
    $class = $i % 2 == 0 ? "even" : "odd";
    ?>
    <tr id="row_db_<?php 
    echo $a_dossier[$i]['dos_id'];
    ?>
" class="<?php 
Example #3
0
    This means the page is much smaller and is usable with lots of categories.

    Without this, the dropdown boxes grow exponentially as each category has the
    option to be moved into all other categories.

    If you make major changes to this page, please test with 200-300 categories
    nested several levels deep.
*/
define('IN_COPPERMINE', true);
define('CATMGR_PHP', true);
require 'include/init.inc.php';
set_js_var('lang_confirm_delete', $lang_catmgr_php['confirm_delete']);
list($timestamp, $form_token) = getFormToken();
set_js_var('form_token', $form_token);
set_js_var('timestamp', $timestamp);
js_include('js/catmgr.js');
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
$CAT_LIST = array(0 => array('cid' => 0, 'cat_count' => 0));
$icon_array['submit'] = cpg_fetch_icon('ok', 1);
function get_subcat_data($parent, $ident = '')
{
    global $CONFIG, $CAT_LIST;
    $sql = "SELECT rgt, cid, parent, name, pos FROM {$CONFIG['TABLE_CATEGORIES']} ORDER BY lft ASC";
    $result = cpg_db_query($sql);
    if ($result->numRows() > 0) {
        $rowset = cpg_db_fetch_rowset($result, true);
        $right = array();
        foreach ($rowset as $subcat) {
            if (count($right) > 0) {
Example #4
0
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.0
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
**********************************************/
define('IN_COPPERMINE', true);
define('GROUPMGR_PHP', true);
require 'include/init.inc.php';
js_include('js/jquery.js');
js_include('js/jquery.cluetip.js');
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
$cpg_udb->synchronize_groups();
function display_group_list()
{
    global $CONFIG, $custom_group_counter;
    global $lang_groupmgr_php, $lang_byte_units, $lang_common;
    $row_counter = 0;
    $table_start = '<table border="0" cellspacing="0" cellpadding="0" style="white-space:nowrap;font-size:90%;">' . "\n";
    $table_end = '</table>' . "\n";
    $tr_start = '<tr>' . "\n";
    $tr_end = '</tr>' . "\n";
    $td_start = '<td>' . "\n";
    $td_end = '</td>' . "\n";
    if (!empty($row['user_favpics'])) {
        $FAVPICS = @unserialize(@base64_decode($row['user_favpics']));
    } else {
        $FAVPICS = array();
    }
}
// Include the jquery javascript library. Jquery will be included on all pages.
js_include('js/jquery-1.3.2.js');
// Include the scripts.js javascript library that contains coppermine-specific
// JavaScript that is being used on all pages.
// Do not remove this line unless you really know what you're doing
js_include('js/scripts.js');
// Include the JavaScript library that takes care of the help system.
js_include('js/jquery.greybox.js');
// Include the elastic plugin for auto-expanding textareas if debug_mode is on
js_include('js/jquery.elastic.js');
// If referer is set in URL and it contains 'http' or 'script' texts then set it to 'index.php' script
/**
 * Use $CPG_REFERER wherever $_GET['referer'] is used
 */
if ($matches = $superCage->get->getMatched('referer', '/((\\%3C)|<)[^\\n]+((\\%3E)|>)|(.*http.*)|(.*script.*)|(^[\\W].*)/i')) {
    $CPG_REFERER = 'index.php';
} else {
    /**
     * Using getRaw() since we are checking the referer in the above if condition.
     */
    $CPG_REFERER = $superCage->get->getRaw('referer');
}
/**
 * CPGPluginAPI::action('page_start',null)
 *
Example #6
0
function shorturl_page_start()
{
    if (defined('INDEX_PHP')) {
        global $CONFIG, $lang_common, $lang_errors, $cpg_udb, $lang_gallery_admin_menu;
        require "./plugins/shorturl/lang/english.php";
        if ($CONFIG['lang'] != 'english' && file_exists("./plugins/shorturl/lang/{$CONFIG['lang']}.php")) {
            require "./plugins/shorturl/lang/{$CONFIG['lang']}.php";
        }
        $superCage = Inspekt::MakeSuperCage();
        if ($superCage->get->keyExists('c')) {
            header("Location: index.php?cat=" . $superCage->get->getInt('c'));
        }
        if ($superCage->get->keyExists('a')) {
            header("Location: thumbnails.php?album=" . $superCage->get->getInt('a'));
        }
        if ($superCage->get->keyExists('p')) {
            header("Location: displayimage.php?pid=" . $superCage->get->getInt('p'));
        }
        if ($superCage->get->keyExists('r')) {
            $result = cpg_db_query("SELECT url FROM {$CONFIG['TABLE_PREFIX']}plugin_shorturl WHERE rid = " . $superCage->get->getInt('r'));
            $url = mysql_result($result, 0);
            mysql_free_result($result);
            if ($CONFIG['plugin_shorturl_preview'] == 1 || $superCage->get->keyExists('preview')) {
                load_template();
                pageheader($lang_plugin_shorturl['redirection_preview']);
                starttable('100%', $lang_plugin_shorturl['redirection_preview']);
                echo <<<EOT
                    <tr>
                        <td class="tableb">
                            <a href="{$url}" class="external">{$url}</a>
                        </td>
                    </tr>
EOT;
                endtable();
                pagefooter();
                exit;
            } else {
                header("Location: {$url}");
            }
        }
        if ($superCage->get->keyExists('shorturl')) {
            if ($superCage->get->getAlpha('shorturl') == 'config') {
                if (!GALLERY_ADMIN_MODE) {
                    load_template();
                    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
                }
                if ($superCage->post->keyExists('submit') == TRUE) {
                    if (!checkFormToken()) {
                        load_template();
                        cpg_die(ERROR, $lang_errors['invalid_form_token'], __FILE__, __LINE__);
                    }
                    $superCage = Inspekt::makeSuperCage();
                    if (!isset($CONFIG['plugin_shorturl_preview'])) {
                        cpg_db_query("INSERT INTO {$CONFIG['TABLE_CONFIG']} (name, value) VALUES('plugin_shorturl_preview', '" . $superCage->post->getInt('plugin_shorturl_preview') . "')");
                    } else {
                        cpg_db_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = '" . $superCage->post->getInt('plugin_shorturl_preview') . "' WHERE name = 'plugin_shorturl_preview'");
                    }
                    $CONFIG['plugin_shorturl_preview'] = $superCage->post->getInt('plugin_shorturl_preview');
                    $result = cpg_db_query("SELECT group_id FROM {$CONFIG['TABLE_USERGROUPS']} WHERE has_admin_access != '1'");
                    while ($row = mysql_fetch_assoc($result)) {
                        if (!isset($CONFIG['plugin_shorturl_permissions_' . $row['group_id']])) {
                            cpg_db_query("INSERT INTO {$CONFIG['TABLE_CONFIG']} (name, value) VALUES('plugin_shorturl_permissions_{$row['group_id']}', '" . $superCage->post->getInt('plugin_shorturl_permissions_' . $row['group_id']) . "')");
                        } else {
                            cpg_db_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = '" . $superCage->post->getInt('plugin_shorturl_permissions_' . $row['group_id']) . "' WHERE name = 'plugin_shorturl_permissions_{$row['group_id']}'");
                        }
                        $CONFIG['plugin_shorturl_permissions_' . $row['group_id']] = $superCage->post->getInt('plugin_shorturl_permissions_' . $row['group_id']);
                    }
                    mysql_free_result($result);
                }
                load_template();
                pageheader($lang_plugin_shorturl['plugin_name'] . ' ' . $lang_gallery_admin_menu['admin_lnk']);
                $permissions = "";
                $result = cpg_db_query("SELECT group_id, group_name FROM {$CONFIG['TABLE_USERGROUPS']} ORDER BY group_id ASC");
                while ($row = mysql_fetch_assoc($result)) {
                    if (in_array($row['group_id'], $cpg_udb->admingroups)) {
                        $permissions .= <<<EOT
                            <tr>
                                <td valign="top" align="left" class="tableb">
                                    {$row['group_name']}
                                </td>
                                <td valign="top" align="center" class="tableb">
                                    <input type="radio" class="radio" disabled="disabled" />
                                </td>
                                <td valign="top" align="center" class="tableb">
                                    <input type="radio" class="radio" checked="checked" />
                                </td>
                            </tr>
EOT;
                    } else {
                        $row['permission'] = mysql_result(cpg_db_query("SELECT value FROM {$CONFIG['TABLE_CONFIG']} WHERE name = 'plugin_shorturl_permissions_{$row['group_id']}'"), 0);
                        $permissions .= <<<EOT
                            <tr>
                                <td valign="top" align="left" class="tableb">
                                    {$row['group_name']}
                                </td>
EOT;
                        for ($i = 0; $i <= 1; $i++) {
                            if (!is_numeric($row['permission']) && $i == 0) {
                                $checked = "checked=\"checked\"";
                            } else {
                                $checked = $row['permission'] == $i ? "checked=\"checked\"" : "";
                            }
                            $permissions .= <<<EOT
                                <td valign="top" align="center" class="tableb">
                                    <input type="radio" name="plugin_shorturl_permissions_{$row['group_id']}" id="plugin_shorturl_permissions_{$row['group_id']}_{$i}" class="radio" value="{$i}" {$checked} />
                                </td>
EOT;
                        }
                        $permissions .= <<<EOT
                            </tr>
EOT;
                    }
                }
                mysql_free_result($result);
                $preview = "";
                for ($i = 0; $i <= 1; $i++) {
                    $checked = $CONFIG['plugin_shorturl_preview'] == $i ? "checked=\"checked\"" : "";
                    $preview .= <<<EOT
                        <td valign="top" align="center" class="tableb">
                            <input type="radio" name="plugin_shorturl_preview" id="plugin_shorturl_preview_{$i}" class="radio" value="{$i}" {$checked} />
                        </td>
EOT;
                }
                list($timestamp, $form_token) = getFormToken();
                echo <<<EOT
                    <form action="" method="post" name="shorturl_config" id="shorturl_config">
EOT;
                starttable('100%', $lang_plugin_shorturl['plugin_name'] . ' ' . $lang_gallery_admin_menu['admin_lnk'], 3);
                echo <<<EOT
                    <tr>
                        <td valign="top" class="tableb">
                            {$lang_plugin_shorturl['display_menu_button']}
                        </td>
                        <td valign="top" class="tableb" colspan="2">
                            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                <tr>
                                    <th valign="top" align="left" class="tableh2">
                                        {$lang_plugin_shorturl['group']}
                                    </th>
                                    <th valign="top" align="center" class="tableh2">
                                        {$lang_common['no']}
                                    </th>
                                    <th valign="top" align="center" class="tableh2">
                                        {$lang_common['yes']}
                                    </th>
                                </tr>
                                {$permissions}
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="tableb">
                            {$lang_plugin_shorturl['show_redirection_preview']}
                        </td>
                        <td class="tableb">
                            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                <tr>
                                    <th valign="top" align="center" class="tableh2">
                                        {$lang_common['no']}
                                    </th>
                                    <th valign="top" align="center" class="tableh2">
                                        {$lang_common['yes']}
                                    </th>
                                </tr>
                                {$preview}
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" class="tablef">
                        </td>
                        <td valign="middle" class="tablef" colspan="2">
                            <input type="hidden" name="form_token" value="{$form_token}" />
                            <input type="hidden" name="timestamp" value="{$timestamp}" />
                            <button type="submit" class="button" name="submit" value="{$lang_common['ok']}">{$annotate_icon_array['ok']}{$lang_common['ok']}</button>
                        </td>
                    </tr>
EOT;
                endtable();
                pagefooter();
                exit;
            }
            if ($superCage->get->getAlpha('shorturl') == 'add') {
                if (shorturl_get_permission() == 0) {
                    global $lang_errors;
                    load_template();
                    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
                }
                if ($superCage->post->keyExists('url')) {
                    js_include('plugins/shorturl/jquery.copy.js');
                    load_template();
                    pageheader($lang_plugin_shorturl['your_url']);
                    starttable('100%', $lang_plugin_shorturl['your_url'], 2);
                    echo <<<EOT
                        <tr>
                            <td class="tableb">
EOT;
                    $regex = '^' . '(https?://){1,1}' . '(([0-9a-z_!~*\'().&=+$%-]+: ){0,1}' . '[0-9a-z_!~*\'().&=+$%-]+@){0,1}' . '(([0-9]{1,3}\\.){3}[0-9]{1,3}' . '|' . '(' . '([0-9a-z_!~*\'()-]+\\.)*' . '([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\\.' . '[a-z]{2,6}' . ')' . ')' . '(:[0-9]{1,4}){0,1}' . '((/?)|' . '(/[0-9a-zA-Z_!~*\'().;?:@&=+$,%\\#-]+)+/?)' . '$';
                    $url = $superCage->post->getRaw('url');
                    if (!preg_match('#' . $regex . '#i', $url)) {
                        echo $lang_plugin_shorturl['invalid_url'] . ": <tt>{$url}</tt> <br/> <form action=\"javascript:history.back();\"><button type=\"submit\" class=\"button\">{$lang_common['back']}</button></form>";
                    } else {
                        $result = cpg_db_query("SELECT rid FROM {$CONFIG['TABLE_PREFIX']}plugin_shorturl WHERE url = '{$url}'");
                        if (mysql_num_rows($result) > 0) {
                            $rid = mysql_result($result, 0);
                        } else {
                            cpg_db_query("INSERT INTO {$CONFIG['TABLE_PREFIX']}plugin_shorturl (url) VALUES ('{$url}')");
                            $result = cpg_db_query("SELECT rid FROM {$CONFIG['TABLE_PREFIX']}plugin_shorturl WHERE url = '{$url}'");
                            $rid = mysql_result($result, 0);
                        }
                        mysql_free_result($result);
                        $length = strlen($CONFIG['ecards_more_pic_target'] . "?r={$rid}") + 20;
                        $preview_status = sprintf($lang_plugin_shorturl['preview_status'], $CONFIG['plugin_shorturl_preview'] == 1 ? $lang_plugin_shorturl['enabled'] : $lang_plugin_shorturl['disabled']);
                        echo <<<EOT
                            <input id="shorturl" type="text" name="url" size="{$length}" class="textinput" value="{$CONFIG['ecards_more_pic_target']}?r={$rid}" readonly="readonly" onclick="\$(this).select();" />
                            <span style="cursor:help;" title="{$preview_status}">{$lang_plugin_shorturl['immediate_redirection']}</span>
                            <br />
                            <input id="shorturl_p" type="text" name="url" size="{$length}" class="textinput" value="{$CONFIG['ecards_more_pic_target']}?r={$rid}&amp;preview" readonly="readonly" onclick="\$(this).select();" />
                            {$lang_plugin_shorturl['display_link']}
EOT;
                    }
                    echo <<<EOT
                            </td>
                        </tr>
EOT;
                    endtable();
                    pagefooter();
                    exit;
                } else {
                    load_template();
                    pageheader($lang_plugin_shorturl['create_url']);
                    echo '<form method="post">';
                    starttable('100%', $lang_plugin_shorturl['enter_url'], 2);
                    list($timestamp, $form_token) = getFormToken();
                    echo <<<EOT
                        <tr>
                            <td class="tableb">
                                <input type="text" id="url" name="url" size="40" class="textinput" style="width:90%;" />
                                <input type="hidden" name="form_token" value="{$form_token}" />
                                <input type="hidden" name="timestamp" value="{$timestamp}" />
                            </td>
                            <td class="tableb">
                                <input type="submit" name="commit" class="button" value="{$lang_plugin_shorturl['shorten']}" />
                            </td>
                        </tr>
EOT;
                    endtable();
                    echo '</form>';
                    echo '<script type="text/javascript">$(document).ready(function() { $("#url").select(); });</script>';
                    pagefooter();
                    exit;
                }
            }
        }
    }
}
function theme_javascript_head()
{
    global $JS, $LINEBREAK;
    $return = '';
    // Check if we have any variables being set using set_js_vars function
    if (!empty($JS['vars'])) {
        // Convert the $JS['vars'] array to json object string
        $json_vars = json_encode($JS['vars']);
        // Output the json object
        $return = <<<EOT
<script type="text/javascript">
/* <![CDATA[ */
    var js_vars = {$json_vars};
/* ]]> */
</script>

EOT;
    }
    // Check if we have any js includes
    if (!empty($JS['includes'])) {
        // Bring the jquery core library to the very top of the list
        if (in_array('js/jquery-1.4.2.js', $JS['includes']) == TRUE) {
            $key = array_search('js/jquery-1.4.2.js', $JS['includes']);
            unset($JS['includes'][$key]);
            array_unshift($JS['includes'], 'js/jquery-1.4.2.js');
        }
        $JS['includes'] = CPGPluginAPI::filter('javascript_includes', $JS['includes']);
        // Include all the files which were set using js_include() function
        foreach ($JS['includes'] as $js_file) {
            $return .= js_include($js_file, true) . $LINEBREAK;
        }
    }
    return $return;
}
Example #8
0
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.6.01
  $HeadURL$
  $Revision$
**********************************************/
define('IN_COPPERMINE', true);
define('SEARCHNEW_PHP', true);
define('DB_INPUT_PHP', true);
require 'include/init.inc.php';
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
set_js_var('lang_continue', $lang_common['continue']);
js_include('js/searchnew.js');
$rowCounter = 0;
$icon_array['ok'] = cpg_fetch_icon('ok', 1);
$icon_array['batch_add'] = cpg_fetch_icon('searchnew', 2);
/**
 * Local functions definition
 */
/**
 * albumselect()
 *
 * return the HTML code for a listbox with name $id that contains the list
 * of all albums
 *
 * @param string $id the name of the listbox
 * @return the HTML code
 */
  ********************************************
  Coppermine version: 1.5.40
  $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/register.php $
  $Revision: 8830 $
**********************************************/
define('IN_COPPERMINE', true);
define('REGISTER_PHP', true);
require 'include/init.inc.php';
require 'include/mailer.inc.php';
if (!$CONFIG['allow_user_registration']) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
if (defined('UDB_INTEGRATION')) {
    $cpg_udb->register_page();
}
js_include('js/register.js');
$icon_array = array('ok' => cpg_fetch_icon('ok', 0), 'username' => cpg_fetch_icon('my_profile', 2), 'password' => cpg_fetch_icon('key_enter', 2), 'email' => cpg_fetch_icon('contact', 2), 'blank' => cpg_fetch_icon('blank', 2));
/*****************************
* function definitions start *
*****************************/
/**
* display_disclaimer()
*
* Display the disclaimer
*
* @param void
* @return void
**/
function display_disclaimer()
{
    global $CONFIG, $CPG_PHP_SELF, $lang_register_php, $icon_array;
Example #10
0
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.0
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
**********************************************/
define('IN_COPPERMINE', true);
define('EDITPICS_PHP', true);
require 'include/init.inc.php';
js_include('js/jquery.js');
js_include('js/jquery.cluetip.js');
js_include('js/jSerach.js');
if ($superCage->get->keyExists('album')) {
    $album_id = $superCage->get->getInt('album');
} elseif ($superCage->post->keyExists('album')) {
    $album_id = $superCage->post->getInt('album');
} else {
    $album_id = -1;
}
if (is_array($USER_DATA['allowed_albums']) && count($USER_DATA['allowed_albums'])) {
    define('MODERATOR_MODE', 1);
    $albStr = implode(",", $USER_DATA['allowed_albums']);
    $albStr = "({$albStr})";
    echo "albstring: " . $albStr;
    /*
        if (isset($_REQUEST['album']) && in_array($_REQUEST['album'], $USER_DATA['allowed_albums'])) {
          define('MODERATOR_EDIT_MODE', 1);
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with NOALYSS; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
// Copyright Author Dany De Bontridder danydb@aevalys.eu
/*! \file
 * \brief Manage the document template
 */
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_document_modele.php';
$sub_action = isset($_REQUEST['sa']) ? $_REQUEST['sa'] : "";
echo js_include('modele_document.js');
echo '<div class="content">';
// show the form for adding a template
//
$doc = new Document_modele($cn);
//-----------------------------------------------------
// Document 	add a template
//-----------------------------------------------------
if ($sub_action == 'add_document') {
    require_once NOALYSS_INCLUDE . '/class_document_modele.php';
    $doc = new Document_modele($cn);
    $doc->md_name = $_POST['md_name'];
    $doc->md_id = -1;
    // because it is a new model
    $doc->md_type = $_POST['md_type'];
    $doc->start = $_POST['start_seq'];
Example #12
0
$User->Check();
html_page_start($User->theme);
if ($User->admin != 1) {
    html_page_stop();
    return;
}
load_all_script();
echo '<H2 class="info"> ' . _('Administration Globale') . '</H2>';
echo '<div class="topmenu">';
echo MenuAdmin() . "</div>";
define('ALLOWED', true);
?>
<DIV >
<?php 
if (isset($_REQUEST["action"])) {
    echo js_include("admin.js");
    if ($_REQUEST["action"] == "user_mgt") {
        //----------------------------------------------------------------------
        // User management
        //----------------------------------------------------------------------
        require_once "user.inc.php";
    }
    // action=user_mgt
    if ($_REQUEST["action"] == "dossier_mgt") {
        //-----------------------------------------------------------------------
        // action = dossier_mgt
        //-----------------------------------------------------------------------
        require_once "dossier.inc.php";
    }
    if ($_REQUEST["action"] == "modele_mgt") {
        //-----------------------------------------------------------------------
Example #13
0
<html>
<head>
<title>New Player</title>
<link type="text/css" rel="stylesheet" media="screen" href="<?php 
echo base_url();
?>
/css/style.css">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<?php 
echo js_include("prototype");
echo js_include("effects");
echo js_include("dragdrop");
echo js_include("controls");
?>
</head>
<body>
<h1>New Football Player!</h1>
	<form action="<?php 
echo site_url('/football/create_player');
?>
" method="post" enctype="multipart/form-data" >
		<p>
			<input type='text' name='name'> Нэр
		</p>
		<p>
			<?php 
echo country_select();
?>
			 Улс 
			<?php 
echo team_select();
Example #14
0
* this is not the file which allows you to set album properties,
* also see documentation for this file's {@relativelink ../_albmgr.php.php Free Standing Code}
*
* @copyright 2002-2006 Gregory DEMAR, Coppermine Dev Team
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License V2
* @package Coppermine
* @version $Id$
*/
/**
* @ignore
*/
define('IN_COPPERMINE', true);
define('ALBMGR_PHP', true);
require 'include/init.inc.php';
js_include('js/jquery.js');
js_include('js/jquery.tablednd.js');
if (!(GALLERY_ADMIN_MODE || USER_ADMIN_MODE)) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
/**
 * alb_get_subcat_data()
 *
 * @param integer $parent
 * @param string $ident
 **/
function alb_get_subcat_data($parent, $ident = '')
{
    global $CONFIG, $CAT_LIST, $USER_DATA;
    //select cats where the users can change the albums
    $group_id = $USER_DATA['group_id'];
    $result = cpg_db_query("SELECT cid, name, description FROM {$CONFIG['TABLE_CATEGORIES']} WHERE parent = '{$parent}' AND cid != 1 ORDER BY pos");
  Copyright (c) 2003-2015 Coppermine Dev Team
  v1.0 originally written by Gregory Demar

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.40
  $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/edit_one_pic.php $
  $Revision: 8830 $
**********************************************/
define('IN_COPPERMINE', true);
define('EDITPICS_PHP', true);
require 'include/init.inc.php';
js_include('js/edit_one_pic.js');
// Define the icons
$icon_array = array('album_properties' => cpg_fetch_icon('modifyalb', 2), 'thumbnail_view' => cpg_fetch_icon('thumbnails', 2), 'file_info' => cpg_fetch_icon('info', 2), 'album' => cpg_fetch_icon('alb_mgr', 2), 'move' => cpg_fetch_icon('move', 2), 'title' => cpg_fetch_icon('title', 2), 'file_name' => cpg_fetch_icon('filename', 2), 'description' => cpg_fetch_icon('text_left', 2), 'keyword' => cpg_fetch_icon('keyword_mgr', 2), 'file_approval' => cpg_fetch_icon('file_approval', 2), 'file_approve' => cpg_fetch_icon('file_approve', 2), 'file_disapprove' => cpg_fetch_icon('file_disapprove', 2), 'exif' => cpg_fetch_icon('exif_mgr', 2), 'reset_views' => cpg_fetch_icon('stats_delete', 2), 'reset_votes' => cpg_fetch_icon('blank', 2), 'delete_comments' => cpg_fetch_icon('comment_approval', 2), 'ok' => cpg_fetch_icon('ok', 2));
$superCage = Inspekt::makeSuperCage();
if ($superCage->get->keyExists('id')) {
    $pid = $superCage->get->getInt('id');
} elseif ($superCage->post->keyExists('id')) {
    $pid = $superCage->post->getInt('id');
} else {
    $pid = -1;
}
/* --------------------------------------------------------------------------
 * FUNCTION DEFINITIONS
 * --------------------------------------------------------------------------*/
function process_post_data()
{
        $sortBy = 'date';
        $sortDirection = 'ASC';
        break;
}
if ($sortDirection == 'ASC') {
    $sortDirectionText = $lang_db_ecard_php['ecard_ascending'];
}
// determine the total number of entries
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_ECARDS']}");
list($totalEcards) = mysql_fetch_row($result);
mysql_free_result($result);
if ($totalEcards == 0) {
    cpg_die(INFORMATION, $lang_errors['ecards_empty'], __FILE__, __LINE__, false);
}
set_js_var('ecards_delete_confirm', $lang_db_ecard_php['ecards_delete_confirm']);
js_include('js/db_ecard.js');
pageheader($lang_db_ecard_php['title']);
$formTarget = cpgGetUrlVars('count');
print '<form method="post" name="ecardselect" id="cpgform" action="' . $formTarget . '" onsubmit="return defaultagree(this)">';
// create tabbed display (non-coppermine standard); maybe this could be changed later using the coppermine standard method
// step 1: calculate the number of pages
$pageTotal = ceil($totalEcards / $countTo);
// step 2: get the current url without 'start' and 'count'
$urlWithoutStart = $CPG_PHP_SELF . "?";
foreach ($eid as $key => $value) {
    if ($key != 'start' && $key != 'count') {
        $urlWithoutStart .= $key . "=" . $value . "&";
    }
}
//step 3: loop through the pages & create the links
for ($page = 1; $page <= $pageTotal; $page++) {
    if (mysql_num_rows($results) == 0) {
        cpg_die(ERROR, $lang_modifyalb_php['err_no_alb_to_modify'], __FILE__, __LINE__);
    }
    $ALBUM_DATA = mysql_fetch_assoc($results);
    $CLEAN['album'] = $ALBUM_DATA['aid'];
} else {
    $results = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='{$CLEAN['album']}'");
    if (!mysql_num_rows($results)) {
        cpg_die(CRITICAL_ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
    }
    $ALBUM_DATA = mysql_fetch_assoc($results);
}
$cat = $ALBUM_DATA['category'];
$actual_cat = $cat;
//////////// main code start ///////////////////
js_include('js/modifyalb.js');
set_js_var('reset_views_confirm', $lang_modifyalb_php['reset_views_confirm']);
set_js_var('cursor_stop', $icon_array['stop']);
pageheader(sprintf($lang_modifyalb_php['upd_alb_n'], $ALBUM_DATA['title']));
$album_lb = alb_list_box();
echo <<<EOT
    <form method="post" name="modifyalbum" action="db_input.php">
    <input type="hidden" name="event" value="album_update" />
    <input type="hidden" name="aid" value="{$CLEAN['album']}" />
EOT;
starttable("100%", cpg_fetch_icon('modifyalb', 1) . $lang_common['album_properties'] . ' - ' . $lang_modifyalb_php['update'] . $help['table'], 2, 'cpg_zebra');
echo <<<EOT
    <tr>
        <td class="tableh2">
            <strong>{$lang_modifyalb_php['related_tasks']}</strong>{$help['related_tasks']}
        </td>
Example #18
0
if ('swfupload' == $upload_form) {
    js_include('js/swfupload/swfupload.js');
    js_include('js/swfupload/swfupload.swfobject.js');
    js_include('js/swfupload/swfupload.queue.js');
    js_include('js/swfupload/fileprogress.js');
    js_include('js/swfupload/handlers.js');
    js_include('js/setup_swf_upload.js');
    // Set the lang_upload_swf_php language array for use in js
    set_js_var('lang_upload_swf_php', $lang_upload_swf_php);
    set_js_var('notify_admin', $CONFIG['upl_notify_admin_email']);
    set_js_var('max_upl_size', $CONFIG['max_upl_size']);
    list($timestamp, $form_token) = getFormToken();
    set_js_var('timestamp', $timestamp);
    set_js_var('form_token', $form_token);
}
js_include('js/upload.js');
//___________________________________Function Block_______________________________________
// The text box form input function. Takes the text label for the box, the input name, the maximum length for text boxes,
// and the number of iterations.
function text_box_input($text, $name, $max_length, $iterations, $default = '')
{
    global $CONFIG, $LINEBREAK;
    $ordinal = '';
    if ($text == '' and $iterations == '') {
        echo '        <input type="hidden" name="' . $name . '" value="' . $default . '" />' . $LINEBREAK;
        return;
    }
    // Begin loop
    for ($counter = 0; $counter < $iterations; $counter++) {
        // Create a numbering system when necessary.
        if ($text == '') {
Example #19
0
    $body = $_POST['body'];
} else {
    $title = '';
    $body = '';
}
?>

<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Under the Couch - Write Blog Post</title>
		<link rel="stylesheet" type="text/css" href="/styles.css" />

		<?php 
js_include('tinymce/tinymce.min');
?>

		<script>
			tinymce.init({
				selector : 'textarea',
				width    : 600,
				toolbar  : 'undo redo '
				         . '| styleselect '
						 . '| bold italic underline strikethrough '
						 . '| alignleft aligncenter alignright alignjustify '
						 . '| bullist numlist '
						 . '| link image'
			});
		</script>
	</head>
Example #20
0
  Copyright (c) 2003-2016 Coppermine Dev Team
  v1.0 originally written by Gregory Demar

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.6.01
  $HeadURL$
  $Revision$
**********************************************/
define('IN_COPPERMINE', true);
define('EDITPICS_PHP', true);
require 'include/init.inc.php';
js_include('js/editpics.js');
// Define the icons
$icon_array = array('album_properties' => cpg_fetch_icon('modifyalb', 2), 'thumbnail_view' => cpg_fetch_icon('thumbnails', 2), 'file_info' => cpg_fetch_icon('info', 2), 'album' => cpg_fetch_icon('alb_mgr', 2), 'move' => cpg_fetch_icon('move', 2), 'title' => cpg_fetch_icon('title', 2), 'file_name' => cpg_fetch_icon('filename', 2), 'description' => cpg_fetch_icon('text_left', 2), 'keyword' => cpg_fetch_icon('keyword_mgr', 2), 'file_approval' => cpg_fetch_icon('file_approval', 2), 'file_approve' => cpg_fetch_icon('file_approve', 0, $lang_editpics_php['approve_pic']), 'file_approve_all' => cpg_fetch_icon('file_approve', 0, $lang_editpics_php['approve_all']), 'file_disapprove' => cpg_fetch_icon('file_disapprove', 2), 'exif' => cpg_fetch_icon('exif_mgr', 2), 'reset_views' => cpg_fetch_icon('stats_delete', 0), 'reset_views_all' => cpg_fetch_icon('stats_delete', 0, $lang_editpics_php['reset_all_view_count']), 'reset_votes' => cpg_fetch_icon('blank', 2), 'ok' => cpg_fetch_icon('ok', 2), 'category' => cpg_fetch_icon('category', 2), 'delete' => cpg_fetch_icon('delete', 0, $lang_editpics_php['del_pic']), 'delete_all' => cpg_fetch_icon('delete', 0, $lang_editpics_php['del_all']), 'comment_delete' => cpg_fetch_icon('comment_disapprove', 0, $lang_editpics_php['del_comm']), 'comment_delete_all' => cpg_fetch_icon('comment_disapprove', 0, $lang_editpics_php['del_all_comm']), 'edit_files' => cpg_fetch_icon('edit', 2), 'continue' => cpg_fetch_icon('right', 0));
if ($superCage->get->keyExists('album')) {
    $album_id = $superCage->get->getInt('album');
} elseif ($superCage->post->keyExists('album')) {
    $album_id = $superCage->post->getInt('album');
} else {
    $album_id = 0;
}
if (isset($USER_DATA['allowed_albums']) && count($USER_DATA['allowed_albums']) > 0) {
    define('MODERATOR_MODE', 1);
    $albStr = implode(',', $USER_DATA['allowed_albums']);
    $albStr = "({$albStr})";
    if (isset($album_id) && in_array($album_id, $USER_DATA['allowed_albums'])) {
        define('MODERATOR_EDIT_MODE', 1);
  $Revision: 8830 $
**********************************************/
define('IN_COPPERMINE', true);
define('ADMIN_PHP', true);
require_once 'include/init.inc.php';
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
// define some vars that need to exist in JS
set_js_var('lang_warning_dont_submit', $lang_admin_php['warning_dont_submit']);
set_js_var('lang_reset_to_default', $lang_admin_php['reset_to_default']);
set_js_var('lang_no_change_needed', $lang_admin_php['no_change_needed']);
set_js_var('display_reset_boxes', $CONFIG['display_reset_boxes_in_config']);
// Include the JS for admin.php
js_include('js/jquery.spinbutton.js');
js_include('js/admin.js');
$admin_data_array = $CONFIG;
$optionLoopCounter = 0;
$submit_icon = cpg_fetch_icon('ok', 1);
$factory_icon = cpg_fetch_icon('delete', 1);
require_once 'include/admin.inc.php';
// populate the array for the admin data (could later be done using an XML file)
// Filter upload choices to allow plugins to add upload methods
$config_data['user_settings']['upload_mechanism']['options'] = CPGPluginAPI::filter('upload_options', $config_data['user_settings']['upload_mechanism']['options']);
// loop through the config sections and populate the array that determines what sections to expand/collapse
$collapseSections_array = array();
// By default, all sections should be hidden. Let's populate the array first with all existing sections and then later remove the ones that are supposed to be expanded by default
foreach ($config_data as $key => $value) {
    $collapseSections_array[] = $key;
}
$userMessage = '';
Example #22
0
<html>
<head>
<title>New Forum</title>
<link type="text/css" rel="stylesheet" media="screen" href="<?=base_url()?>/css/style.css">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<?=js_include("prototype")?>
<?=js_include("effects")?>
<?=js_include("dragdrop")?>
<?=js_include("controls")?>
<?=js_include("home")?>
<?=css_include("style")?>
</head>
<body onload="Face.Init();">
<?include(APPPATH."/views/header.php");?>
	<div id='body'>
		<div id='left'>
			<div class='leftBox'>
				<div class='leftBox_header'>
					<h2> Хэрэглэгчид</h2>
				</div>
				<div class='leftBox_body'>
					<?php
						$users = get_all_users();
						foreach ($users->result() as $user):
					?>
							<p><?=$user->login?></p>
						<?endforeach;?>
					<br/><br/><br/><br/><br/><br/><br/>
				</div>
				<div class='leftBox_footer'>
				</div>
Example #23
0
<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Under the Couch - Create Account</title>
		<link rel="stylesheet" type="text/css" href="/styles.css" />

		<?php 
js_include('jquery-2.1.1.min', 'jquery-validation-1.13.0/jquery.validate.min', 'validate');
?>
	</head>

	<body>
		<?php 
ui_insert('header');
?>

		<?php 
if (!is_logged_in()) {
    ?>
			<form method="post" id="accountform" action="/user/proc/accountform.php">
				<fieldset>
					<legend>Create Account</legend>
					<p>
						<label for="firstname">First Name:</label>
						<input class="textbox" type="text" name="firstname" id="firstname" />
					</p>
					<p>
						<label for="lastname">Last Name:</label>
						<input class="textbox" type="text" name="lastname" id="lastname" />
					</p>
require_once 'include/init.inc.php';
require_once 'include/mailer.inc.php';
if (USER_ID) {
    $USER_DATA = array_merge($USER_DATA, $cpg_udb->get_user_infos(USER_ID));
}
$icon_array['ok'] = cpg_fetch_icon('ok', 1);
$js_contact['check']['one'] = !USER_ID && $CONFIG['contact_form_guest_name_field'] == 2 ? true : false;
$js_contact['check']['two'] = !USER_ID ? true : false;
$js_contact['check']['three'] = !USER_ID && $CONFIG['contact_form_guest_email_field'] == 2 ? true : false;
$js_contact['check']['four'] = $CONFIG['contact_form_subject_field'] == 2 ? true : false;
$js_contact['your_name'] = $lang_contact_php['your_name'];
$js_contact['name_field_invalid'] = $lang_contact_php['name_field_invalid'];
$js_contact['email_field_invalid'] = $lang_contact_php['email_field_invalid'];
set_js_var('contact', $js_contact);
unset($js_contact);
js_include('js/contact.js');
// determine if the visitor is allowed to access
if (!USER_ID) {
    // visitor is guest
    if ($CONFIG['contact_form_guest_enable'] == 0) {
        cpg_die($lang_common['error'], $lang_errors['access_denied'], __FILE__, __LINE__);
        //guests are not allowed
    }
} else {
    // visitor is a registered user
    if ($CONFIG['contact_form_registered_enable'] == 0 && !GALLERY_ADMIN_MODE) {
        cpg_die($lang_common['error'], $lang_errors['access_denied'], __FILE__, __LINE__);
        //registered users are not allowed
    }
}
// do the stuff here when the form has been submit
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.40
  $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/versioncheck.php $
  $Revision: 8830 $
**********************************************/
define('IN_COPPERMINE', true);
define('VERSIONCHECK_PHP', true);
require_once 'include/init.inc.php';
// define some vars that need to exist in JS
// Include the JS for versioncheck.php
js_include('js/versioncheck.js');
require_once 'include/versioncheck.inc.php';
if (!GALLERY_ADMIN_MODE) {
    cpg_die($lang_common['error'], $lang_errors['access_denied'], __FILE__, __LINE__);
}
// Sanitize the GET vars and populate the optionsArray --- start
// possible values: screen, textarea, create, options
$optionDisplayOutput_array = array();
$actionGet = $superCage->get->getMatched('output', '/^[a-z]+$/');
if (in_array($actionGet[0], array('screen', 'textarea', 'create', 'options')) == TRUE) {
    $action = $actionGet[0];
} else {
    $action = 'options';
}
if ($superCage->get->getInt('do_not_connect_to_online_repository') == '1') {
    $displayOption_array['do_not_connect_to_online_repository'] = 1;
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.40
  $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/profile.php $
  $Revision: 8830 $
**********************************************/
define('IN_COPPERMINE', true);
define('PROFILE_PHP', true);
define('USERMGR_PHP', true);
require 'include/init.inc.php';
include "include/smilies.inc.php";
set_js_var('lang_really_delete', $lang_register_php['really_delete']);
js_include('js/profile.js');
$cpg_udb->view_profile($superCage->get->getInt('uid'));
$icon_array = array('ok' => cpg_fetch_icon('ok', 0), 'password' => cpg_fetch_icon('key_enter', 0), 'delete' => cpg_fetch_icon('delete', 0), 'edit' => cpg_fetch_icon('edit', 2));
function cpgUserPicCount($uid)
{
    global $CONFIG;
    $result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE owner_id = {$uid}");
    list($pic_count) = mysql_fetch_row($result);
    mysql_free_result($result);
    return $pic_count;
}
function cpgUserThumb($uid)
{
    global $CONFIG, $FORBIDDEN_SET;
    $query = "SELECT COUNT(*), MAX(pid) FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE owner_id = '{$uid}' AND approved = 'YES' {$FORBIDDEN_SET}";
    $result = cpg_db_query($query);
    function getDateLink($day, $month, $year)
    {
        global $CONFIG, $lang_calendar_php, $FORBIDDEN_SET;
        $date = sprintf('%d-%02d-%02d', $year, $month, $day);
        $sql = "SELECT COUNT(*) FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE approved = 'YES' AND DATE(FROM_UNIXTIME(ctime)) = '{$date}' {$FORBIDDEN_SET}";
        $result = cpg_db_query($sql);
        list($nb_pics) = mysql_fetch_row($result);
        if ($nb_pics) {
            $link = '<a href="#" onclick="sendDate(\'' . $month . '\', \'' . $day . '\', \'' . $year . '\');" class="user_thumb_infobox" title="' . $nb_pics . ' ' . $lang_calendar_php['files'] . '">';
        } else {
            $link = '';
        }
        return $link;
    }
}
js_include('js/calendar.js');
pageheader_mini($lang_calendar_php['title'], true);
$today = getdate();
if ($superCage->get->testInt('month')) {
    $month = $superCage->get->getInt('month');
} else {
    $month = $today['mon'];
}
if ($superCage->get->testInt('year')) {
    $year = $superCage->get->getInt('year');
} else {
    $year = $today['year'];
}
$cal = new MyCalendar();
$cal->setMonthNames($lang_month);
$cal->setDayNames($lang_day_of_week);
Example #28
0
add checks for is_image() to functions that only apply to images
remove extract() from refresh_db()
*/
define('IN_COPPERMINE', true);
define('UTIL_PHP', true);
require 'include/init.inc.php';
require 'include/picmgmt.inc.php';
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
$defpicnum = 25;
// Default number of pictures to process at a time when rebuilding thumbs or normals:
$dayolder = 365;
// Default number of days for deleting files older than xxx days {Frantz}
$icon_array = array('continue' => cpg_fetch_icon('right', 2), 'back' => cpg_fetch_icon('leftleft', 2), 'delete_all' => cpg_fetch_icon('delete', 2), 'ok' => cpg_fetch_icon('ok', 2), 'stop' => cpg_fetch_icon('stop', 2), 'cancel' => cpg_fetch_icon('cancel', 2), 'info' => cpg_fetch_icon('info', 2), 'util' => cpg_fetch_icon('util', 2));
js_include('js/util.js');
pageheader($lang_util_php['title']);
// 'action name (for the $_REQUEST)' => array('function name','title for main page','description/options for main page')
if ($CONFIG['make_intermediate'] == 1) {
    $intermediate_create_string = $lang_util_php['enabled'];
} else {
    $intermediate_create_string = $lang_util_php['disabled'];
}
// Set up labels for keyword separator conversion
$keyword_select = $LINEBREAK . '                <select size="1" name="%s" class="listbox">';
foreach ($lang_common['keyword_separators'] as $key_value => $key_label) {
    $keyword_select .= '<option value="' . htmlentities($key_value) . '">' . $key_label . '</option>';
}
$keyword_select .= '</select>' . $LINEBREAK . '                ';
$keyword_from_to = sprintf($lang_util_php['keyword_from_to'], sprintf($keyword_select, 'keyword_from'), sprintf($keyword_select, 'keyword_to'));
$keyword_set = $lang_util_php['keyword_set'];
Example #29
0
<html>
<head>
<title>News</title>
<link type="text/css" rel="stylesheet" media="screen" href="<?=base_url()?>/css/style.css">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<?=js_include("prototype")?>
<?=js_include("effects")?>
<?=js_include("dragdrop")?>
<?=js_include("controls")?>
<?=js_include("news")?>
<?=css_include("style")?>
</head>
<body>
	<?include(APPPATH."/views/header.php");?>
<div id='body'>
	<div id='left'>
		<div class='leftBox'>
			<div class='leftBox_header'>
				<h2> Хэрэглэгчид</h2>
			</div>
			<div class='leftBox_body'>
				<?php
					$users = get_all_users();
					foreach ($users->result() as $user):
				 ?>
				 <p><?=$user->login?></p>
					<?endforeach;?>
			</div>
			<div class='leftBox_footer'>
			</div>
		</div>
Example #30
0
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.6.01
  $HeadURL$
  $Revision$
**********************************************/
// TODO: title tags contain hardcoded English instead of lang vars.
define('IN_COPPERMINE', true);
define('ALBMGR_PHP', true);
require 'include/init.inc.php';
set_js_var('lang_edit', $lang_common['edit']);
js_include('js/jquery.sort.js');
js_include('js/albmgr.js');
if (!(GALLERY_ADMIN_MODE || USER_ADMIN_MODE)) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
$icon_array = array();
$icon_array['ok'] = cpg_fetch_icon('ok', 1);
$icon_array['cancel'] = cpg_fetch_icon('cancel', 1);
$icon_array['up'] = cpg_fetch_icon('up', 0);
$icon_array['upup'] = cpg_fetch_icon('upup', 0);
$icon_array['down'] = cpg_fetch_icon('down', 0);
$icon_array['downdown'] = cpg_fetch_icon('downdown', 0);
$icon_array['new'] = cpg_fetch_icon('add', 1);
$icon_array['delete'] = cpg_fetch_icon('delete', 0);
$icon_array['edit'] = cpg_fetch_icon('edit', 1);
$icon_array['modifyalb'] = cpg_fetch_icon('modifyalb', 1);
$icon_array['edit_files'] = cpg_fetch_icon('edit', 1);