Code: Select all
No route found for "GET /ucp.php"
Code: Select all
No route found for "GET /ucp.php"
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// If founder, change script_path
if ($user->data['user_type'] == USER_FOUNDER)
{
$sql = 'UPDATE ' . CONFIG_TABLE . " SET config_value = '/' WHERE config_name = 'script_path'";
$db->sql_query($sql);
$cache->purge();
echo 'script_path changed';
}
else
{
echo 'You need to be logged in as a founder to run this script!';
}
phpbb_
with your table prefix if different):Code: Select all
SELECT config_value FROM phpbb_config WHERE config_name = 'server_name';
That won't work.kinerity wrote: Also, what is the output when you run this query (changephpbb_
with your table prefix if different):
Knowledge Base - Executing SQL Queries in phpMyAdminCode: Select all
SELECT server_name FROM phpbb_config;
Code: Select all
SELECT config_value FROM phpbb_config WHERE config_name = 'server_name';
If so it's a SQL query: Knowledge Base - Executing SQL Queries in phpMyAdmin. If it's the PHP code you mean you would have to create a PHP file inserting the code mentioned then upload it to your server and run it from a founder account.Oyabun1 wrote:It would need to be something like:Code: Select all
SELECT config_value FROM phpbb_config WHERE config_name = 'server_name';
That helped a little bit.Mick wrote:Do you mean this?If so it's a SQL query: Knowledge Base - Executing SQL Queries in phpMyAdmin. If it's the PHP code you mean you would have to create a PHP file inserting the code mentioned then upload it to your server and run it from a founder account.Oyabun1 wrote:It would need to be something like:Code: Select all
SELECT config_value FROM phpbb_config WHERE config_name = 'server_name';