コード例 #1
0
<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$component = new OssnComponents();
$database = new OssnDatabase();
/**
 * Add OssnPoke Component
 *
 * @access private
 */
$component->newCom('OssnPoke');
/**
 * Delete invalid notification from system (group like)
 *
 * @access private
 */
$delete['from'] = 'ossn_notifications';
$delete['wheres'] = array("type='like:post:group:wall'");
$database->delete($delete);
/**
 * Update processed updates in database so user cannot upgrade again and again.
 *
 * @access private
コード例 #2
0
ファイル: enable.php プロジェクト: nongdanit-nongdanit/ossn
<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$enable = new OssnComponents();
$com = input('com');
$cache = ossn_site_settings('cache');
if ($enable->enable($com)) {
    ossn_trigger_message(ossn_print('com:enabled'), 'success');
    if ($cache == false) {
        redirect(REF);
    } else {
        //redirect and flush cache
        $action = ossn_add_tokens_to_url("action/admin/cache/flush");
        redirect($action);
    }
}
コード例 #3
0
<?php

/**
 * OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$database = new OssnDatabase();
$Component = new OssnComponents();
/**
 * Fix typo in database table
 */
$database->statement("ALTER TABLE  `ossn_entities` \n\t\t\t\t\t  CHANGE  `premission`  `permission` INT( 1 ) NOT NULL ;");
$database->execute();
/**
 * Change component name size
 */
$database->statement("ALTER TABLE  `ossn_components` \n\t\t\t\t\t  CHANGE  `com_id`  `com_id` TEXT CHARACTER SET utf8 \n\t\t\t\t\t  COLLATE utf8_general_ci NOT NULL ;");
$database->execute();
/**
 * Add OssnEmbed and OssnInvite Component
 */
$Component->ENABLE('OssnEmbed');
$Component->ENABLE('OssnInvite');
/**
 * Update processed updates in database so user cannot upgrade again and again.
 *
コード例 #4
0
ファイル: ossn.lib.admin.php プロジェクト: emnaborgi/RS
/**
 * Register a page handler for administrator;
 * @pages:
 *       administrator,
 *    administrator/dasbhoard,
 *       administrator/component,
 *       administrator/components,
 *       administrator/com_installer,
 *       administrator/theme_installer,
 *       administrator/settings/<page>,
 *       administrator/cache,
 *       administrator/users,
 *       administrator/edituser
 *
 * @return boolean|null
 */
function ossn_administrator_pagehandler($pages)
{
    $page = $pages[0];
    if (empty($page)) {
        $page = 'dashboard';
    }
    switch ($page) {
        case 'dashboard':
            $title = ossn_print('admin:dashboard');
            $contents['contents'] = ossn_plugin_view('pages/administrator/contents/dashboard');
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'component':
            global $Ossn;
            if (isset($pages[1]) && in_array($pages[1], ossn_registered_com_panel())) {
                $com['com'] = OssnComponents::getCom($pages[1]);
                $com['settings'] = ossn_components()->getComSettings($pages[1]);
                $title = $com['com']->name;
                $contents['contents'] = ossn_plugin_view("settings/administrator/{$pages[1]}/{$Ossn->com_panel[$pages[1]]}", $com);
                $contents['title'] = $title;
                $content = ossn_set_page_layout('administrator/administrator', $contents);
                echo ossn_view_page($title, $content, 'administrator');
            }
            break;
        case 'components':
            $title = ossn_print('admin:components');
            $contents['contents'] = ossn_plugin_view("pages/administrator/contents/components");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'themes':
            $title = ossn_print('admin:themes');
            $contents['contents'] = ossn_plugin_view("pages/administrator/contents/themes");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'com_installer':
            $title = ossn_print('admin:com:installer');
            $contents['contents'] = ossn_plugin_view("pages/administrator/contents/com_installer");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'theme_installer':
            $title = ossn_print('admin:theme:installer');
            $contents['contents'] = ossn_plugin_view("pages/administrator/contents/theme_installer");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'settings':
            global $Ossn;
            if (isset($pages[1]) && in_array($pages[1], ossn_registered_settings_pages())) {
                $title = ossn_print("{$pages[1]}:settings");
                //file should be in plugins/views/default/settings/<file> $arsalanshah
                $contents['contents'] = ossn_plugin_view($Ossn->adminSettingsPage[$pages[1]]);
                $contents['title'] = $title;
                $content = ossn_set_page_layout('administrator/administrator', $contents);
                echo ossn_view_page($title, $content, 'administrator');
            }
            break;
        case 'cache':
            $title = ossn_print('admin:cache:settings');
            $contents['contents'] = ossn_plugin_view("pages/administrator/contents/cache");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'adduser':
            $title = ossn_print('admin:add:user');
            $contents['contents'] = ossn_plugin_view("pages/administrator/contents/adduser");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'users':
            $title = ossn_print('admin:user:list');
            $contents['contents'] = ossn_plugin_view("pages/administrator/contents/users/list");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'unvalidated_users':
            $title = ossn_print('admin:users:unvalidated');
            $contents['contents'] = ossn_plugin_view("pages/administrator/contents/users/unvalidated");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'edituser':
            if (isset($pages[1])) {
                $user['user'] = ossn_user_by_username($pages[1]);
            }
            $title = ossn_print('admin:edit:user');
            $contents['contents'] = ossn_plugin_view("pages/administrator/contents/user/edit", $user);
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'version':
            header('Content-Type: application/json');
            $version = array('version' => ossn_check_update());
            echo json_encode($version);
            break;
        default:
            ossn_error_page();
            break;
    }
}
コード例 #5
0
<?php

/**
 * OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$database = new OssnDatabase();
$Component = new OssnComponents();
/**
 * Add OssnEmbed and OssnInvite Component
 */
$Component->ENABLE('OssnSmilies');
/**
 * Update processed updates in database so user cannot upgrade again and again.
 *
 * @access private
 */
$upgrade_json = array_merge(ossn_get_upgraded_files(), array($upgrade));
$upgrade_json = json_encode($upgrade_json);
$update['table'] = 'ossn_site_settings';
$update['names'] = array('value');
$update['values'] = array($upgrade_json);
$update['wheres'] = array("name='upgrades'");
$upgrade = str_replace('.php', '', $upgrade);
if ($database->update($update)) {
    ossn_trigger_message(ossn_print('upgrade:success', array($upgrade)), 'success');
コード例 #6
0
ファイル: item.php プロジェクト: nongdanit-nongdanit/ossn
<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$OssnComs = new OssnComponents();
$translit = OssnTranslit::urlize($params['component']->id);
if (empty($params['component']->name)) {
    $translit = rand();
}
$requirements = $OssnComs->checkRequirments($params['component']);
//used code from ossn v1.0
if (!$params['OssnCom']->isActive($params['name'])) {
    $enable = ossn_site_url("action/component/enable?com={$params['name']}", true);
    $enable = "<a href='{$enable}' class='btn btn-success'><i class='fa fa-check'></i>" . ossn_print('admin:button:enable') . "</a>";
} elseif (!in_array($params['name'], $params['OssnCom']->requiredComponents())) {
    $disable = ossn_site_url("action/component/disable?com={$params['name']}", true);
    $disable = "<a href='{$disable}' class='btn btn-warning'><i class='fa fa-minus'></i>" . ossn_print('admin:button:disable') . "</a>";
}
if (in_array($params['name'], ossn_registered_com_panel())) {
    $configure = ossn_site_url("administrator/component/{$params['name']}");
    $configure = "<a href='{$configure}' class='btn btn-primary'><i class='fa fa-cogs'></i>" . ossn_print('admin:button:configure') . "</a>";
}
if (!in_array($params['name'], $params['OssnCom']->requiredComponents())) {
    $delete = ossn_site_url("action/component/delete?component={$params['name']}", true);
コード例 #7
0
<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$com = input('component');
$delete = new OssnComponents();
if ($delete->deletecom($com)) {
    ossn_trigger_message(ossn_print('com:deleted'), 'success');
    redirect(REF);
} else {
    ossn_trigger_message(ossn_print('con:delete:error'), 'error');
    redirect(REF);
}
コード例 #8
0
/**
 * Register a page handler for administrator;
 * @pages:
 *       administrator,
 *    administrator/dasbhoard,
 *       administrator/component,
 *       administrator/components,
 *       administrator/com_installer,
 *       administrator/theme_installer,
 *       administrator/settings/<page>,
 *       administrator/cache,
 *       administrator/users,
 *       administrator/edituser
 *
 * @return bool
 */
function ossn_administrator_pagehandler($pages)
{
    $page = $pages[0];
    if (empty($page)) {
        $page = 'dashboard';
    }
    switch ($page) {
        case 'dashboard':
            $title = ossn_print('admin:dashboard');
            $contents['contents'] = ossn_view('pages/administrator/contents/dashboard');
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'component':
            global $Ossn;
            if (isset($pages[1]) && in_array($pages[1], ossn_registered_com_panel())) {
                $com['com'] = OssnComponents::getCom($pages[1]);
                $com['settings'] = ossn_components()->getComSettings($pages[1]);
                $title = $com['com']->com_name;
                $contents['contents'] = ossn_view("components/{$pages[1]}/administrator/{$Ossn->com_panel[$pages[1]]}", $com);
                $contents['title'] = $title;
                $content = ossn_set_page_layout('administrator/administrator', $contents);
                echo ossn_view_page($title, $content, 'administrator');
            }
            break;
        case 'components':
            $title = 'Components';
            $contents['contents'] = ossn_view("pages/administrator/contents/components");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'themes':
            $title = 'Themes';
            $contents['contents'] = ossn_view("pages/administrator/contents/themes");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'com_installer':
            $title = 'Component Installer';
            $contents['contents'] = ossn_view("pages/administrator/contents/com_installer");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'theme_installer':
            $title = 'Theme Installer';
            $contents['contents'] = ossn_view("pages/administrator/contents/theme_installer");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'settings':
            global $Ossn;
            if (isset($pages[1]) && in_array($pages[1], ossn_registered_settings_pages())) {
                $title = ossn_print("{$pages[1]}:settings");
                $contents['contents'] = ossn_view($Ossn->adminSettingsPage[$pages[1]]);
                $contents['title'] = $title;
                $content = ossn_set_page_layout('administrator/administrator', $contents);
                echo ossn_view_page($title, $content, 'administrator');
            }
            break;
        case 'cache':
            $title = 'Cache Settings';
            $contents['contents'] = ossn_view("pages/administrator/contents/cache");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'adduser':
            $title = 'Add User';
            $contents['contents'] = ossn_view("pages/administrator/contents/adduser");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'users':
            $title = 'Users List';
            $contents['contents'] = ossn_view("pages/administrator/contents/users/list");
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        case 'edituser':
            if (isset($pages[1])) {
                $user['user'] = ossn_user_by_username($pages[1]);
            }
            $title = 'Edit User';
            $contents['contents'] = ossn_view("pages/administrator/contents/user/edit", $user);
            $contents['title'] = $title;
            $content = ossn_set_page_layout('administrator/administrator', $contents);
            echo ossn_view_page($title, $content, 'administrator');
            break;
        default:
            echo 403;
            break;
    }
}
コード例 #9
0
<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
?>
<div class="panel-group" id="accordion">
   	<?php 
$OssnComs = new OssnComponents();
$list = $OssnComs->getComponents();
if ($list) {
    foreach ($list as $component) {
        $vars = array();
        $vars['OssnCom'] = $OssnComs;
        $vars['component'] = $OssnComs->getCom($component);
        $vars['name'] = $component;
        echo ossn_plugin_view("admin/components/list/item", $vars);
    }
}
?>
</div> 
コード例 #10
0
<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$OssnComs = new OssnComponents();
foreach ($OssnComs->getComponents() as $Com) {
    $Component = $OssnComs->getCom($Com);
    echo "<div class='ossn-components-item'>";
    echo "<div class='component-controls'>";
    if (!$OssnComs->isActive($Com)) {
        $enable = ossn_site_url("action/component/enable?com={$Com}", true);
        echo "<a href='{$enable}' class='components-button components-button-green'>" . ossn_print('admin:button:enable') . "</a>";
    } elseif (!in_array($Com, $OssnComs->requiredComponents())) {
        $disable = ossn_site_url("action/component/disable?com={$Com}", true);
        echo "<a href='{$disable}' class='components-button components-button-orange'>" . ossn_print('admin:button:disable') . "</a>";
    }
    if (in_array($Com, ossn_registered_com_panel())) {
        $configure = ossn_site_url("administrator/component/{$Com}", true);
        echo "<a href='{$configure}' class='components-button components-button-blue'>" . ossn_print('admin:button:configure') . "</a>";
    }
    if (!in_array($Com, $OssnComs->requiredComponents())) {
        $delete = ossn_site_url("action/component/delete?component={$Com}", true);
        echo "<a href='{$delete}' class='components-button components-button-red'>" . ossn_print('admin:button:delete') . "</a>";
    }
コード例 #11
0
ファイル: delete.php プロジェクト: nongdanit-nongdanit/ossn
<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$delete = new OssnComponents();
$com = input('component');
$cache = ossn_site_settings('cache');
if ($delete->delete($com)) {
    ossn_trigger_message(ossn_print('com:deleted'), 'success');
    if ($cache == false) {
        redirect(REF);
    } else {
        //redirect and flush cache
        $action = ossn_add_tokens_to_url("action/admin/cache/flush");
        redirect($action);
    }
} else {
    ossn_trigger_message(ossn_print('com:delete:error'), 'error');
    redirect(REF);
}
コード例 #12
0
<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$enable = new OssnComponents();
$com = input('com');
if ($enable->DISABLE($com)) {
    ossn_trigger_message(ossn_print('com:disabled'), 'error');
    redirect(REF);
}
コード例 #13
0
ファイル: disable.php プロジェクト: ntmtri23/lienminh365
<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$component = new OssnComponents();
$com = input('com');
$cache = ossn_site_settings('cache');
if ($component->DISABLE($com)) {
    ossn_trigger_message(ossn_print('com:disabled'));
    if ($cache == false) {
        redirect(REF);
    } else {
        //redirect and flush cache
        $action = ossn_add_tokens_to_url("action/admin/cache/flush");
        redirect($action);
    }
}
コード例 #14
0
/**
 * Count total components
 *
 * @return integer
 */
function ossn_total_components()
{
    $com = new OssnComponents();
    return $com->total();
}
コード例 #15
0
<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$OssnCom = new OssnComponents();
if ($OssnCom->upload()) {
    ossn_trigger_message(ossn_print('com:installed'), 'success');
    redirect(REF);
} else {
    ossn_trigger_message(ossn_print('com:install:error'), 'error');
    redirect(REF);
}
コード例 #16
0
ファイル: contents.php プロジェクト: ctlui/HtmlSidebar
<?php

/**
 * Open Source Social Network
 *
 * @packageOpen Source Social Network
 * @author    Open Social Website Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$component = new OssnComponents();
$settings = $component->getSettings('HtmlSidebar');
echo html_sidebar_output($settings->free_html);
コード例 #17
0
<?php

/**
 *    OpenSource-SocialNetwork
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://opensource-socialnetwork.com/licence
 * @link      http://www.opensource-socialnetwork.com/licence
 */
$enable = new OssnComponents();
$com = input('com');
if ($enable->ENABLE($com)) {
    ossn_trigger_message(ossn_print('com:enabled'), 'success');
    redirect(REF);
}
コード例 #18
0
<?php

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$component = new OssnComponents();
$database = new OssnDatabase();
/**
 * Add OssnChat Component
 *
 * @access private
 */
$component->ENABLE('OssnChat');
/**
 * Update processed updates in database so user cannot upgrade again and again.
 *
 * @access private
 */
$upgrade_json = array_merge(ossn_get_upgraded_files(), array($upgrade));
$upgrade_json = json_encode($upgrade_json);
$update['table'] = 'ossn_site_settings';
$update['names'] = array('value');
$update['values'] = array($upgrade_json);
$update['wheres'] = array("name='upgrades'");
$upgrade = str_replace('.php', '', $upgrade);
コード例 #19
0
ファイル: save.php プロジェクト: ctlui/HtmlSidebar
<?php

/**
 * Open Source Social Network
 *
 * @packageOpen Source Social Network
 * @author    Open Social Website Core Team <*****@*****.**>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$input = input('html');
$component = new OssnComponents();
$vars = array('free_html' => $input);
if ($component->setSettings('HtmlSidebar', $vars)) {
    ossn_trigger_message('Successfully saved html');
    redirect(REF);
} else {
    ossn_trigger_message('Can not save html', 'error');
    redirect(REF);
}