To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

English version - [General] Backup forum

sevraj - 16-07-2011, 16:32
Temat postu: [General] Backup forum
I need to save backup of my forum and after i go to Backup Database i receive this message
Cytat:
With security reason acces do SQL menu is only for selected main admins.
If you dont have access and you think that is wrong, tell it to main admin.
If you are main admin you can add new main admins added with ID`s, if you dont know what that mean, dont think about SQL for security your forum :>
If you are added admin, bottom is form to change lists admins, if you are main admin and dont see this form, click HERE you will be able to choose your id (default is 2) as main, and you will can add new lists admins.
Remember after add your ID change name or delete /admin/main_admin.php if not your admins will be able to remove you and add yours ID.


What i must to do ?

xlesiu - 16-07-2011, 16:38

sevraj, click word
Kod:
HERE
and write your ID

sevraj - 16-07-2011, 17:53

I don`t now my id ! I think " 1" :-? because is first user is Admin user in install :-?
xlesiu - 16-07-2011, 17:54

sevraj, first admin have 2
sevraj - 16-07-2011, 17:56

Ok i understand what can i do to make backup to my forum ?

[ Added: 16-07-2011, 19:15 ]
Kod:
<?php
define('MODULE_ID', 2);

define('IN_PHPBB', true);

//
// Let's set the root dir for phpBB
//
$phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);

if ( $userdata['user_level'] != ADMIN )
{
    message_die(GENERAL_MESSAGE, 'Only admin can set main admins');
}

if ( isset($HTTP_POST_VARS['list']) )
{
    update_config('main_admin_id', str_replace("\'", "''", $HTTP_POST_VARS['list']));
   
    $message = $lang['Config_updated'] . "<br /><br />" . sprintf($lang['Click_return_config'], "<a href=\"" . append_sid("admin_no_access.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");

    message_die(GENERAL_MESSAGE, $message);
}

$template->set_filenames(array(
    'body' => 'admin/main_admin.tpl')
);

$template->assign_vars(array(
    'ID_LIST' => ($board_config['main_admin_id']) ? $board_config['main_admin_id'] : '',
    'S_LIST_ACTION' => append_sid("main_admin.$phpEx"),
    'L_ACCESS_TITLE' => $lang['access_title'],
    'SUBMIT' => $lang['Submit'],
    'CHANGE_LIST' => $lang['change_main_admin'])
);

$template->pparse('body');

include('./page_footer_admin.'.$phpEx);

?>
It`s ok with this modify ?

xlesiu - 16-07-2011, 18:36

sevraj, no. If you change ID this file delete.
sevraj - 16-07-2011, 19:02

where i must to edit id ?Sorry but i`am new in this script and i`am but :) )
xlesiu - 16-07-2011, 19:07

End delete file main_admin.php
sevraj - 16-07-2011, 19:36

After i make backup and i trie to import database again i recevie this
Cytat:
This board is currently unavailable.

Reason: Database backup in progress please wait few seconds.


What i must to do , to make forum available ?

xlesiu - 16-07-2011, 19:52

Administration Panel - General Admin - Configuration - Main - Disable (Choice option to disable, in post field you can set reason. Not concern Administrator) - Forum
sevraj - 16-07-2011, 19:54

Thanks man you are the best :X Pfiuu thanks thanks thanks thanks :X :*


Powered by phpBB modified by Przemo © 2003 phpBB Group