Jump to content
php.lv forumi

Valodas maiņa


wrealbrekulis

Recommended Posts

Kā var nomainīt valodu forumam? (saprotu ka pašam jārediģē faili!)

 

Ja man ir iedots šāds text php failā tad kuras rindas būtu jārediģē?

define('IN_PHPBB', true);

$phpbb_root_path = './';

include($phpbb_root_path . 'extension.inc');

include($phpbb_root_path . 'common.'.$phpEx);

 

//

// Set page ID for session management

//

$userdata = session_pagestart($user_ip, PAGE_LOGIN);

init_userprefs($userdata);

//

// End session management

//

 

// session id check

if (!empty($HTTP_POST_VARS['sid']) || !empty($HTTP_GET_VARS['sid']))

{

$sid = (!empty($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : $HTTP_GET_VARS['sid'];

}

else

{

$sid = '';

}

 

if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($HTTP_POST_VARS['logout']) || isset($HTTP_GET_VARS['logout']) )

{

if( ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) ) && (!$userdata['session_logged_in'] || isset($HTTP_POST_VARS['admin'])) )

{

$username = isset($HTTP_POST_VARS['username']) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';

$password = isset($HTTP_POST_VARS['password']) ? $HTTP_POST_VARS['password'] : '';

Link to comment
Share on other sites

Man vajaga latvieshu valodu!

 

P.S. Man divi jautajumi! Ko nozime šīs divas rindas?

 

Run admin/efriends.sql followed by admin/zipdata.sql through any of your mysql clients (i.e phpmyadmin)

 

un

 

Chmod 777 for the following folders/files: groups, photos, blog, events, banners, chat and chat/rooms.php

Link to comment
Share on other sites

un man vajag miljonu!

 

ieraksti konzolē kaut ko kā

mysql -u useris dbname < admin/efriends.sql

mysql -u useris dbname < admin/zipdata.sql

chmod 777 groups photos blog events banners chat chat/rooms.php

 

izstāstīt kas, kur, ko un kāpēc tā gan būs garāk.

Link to comment
Share on other sites

Labi atkal man sīka problēma!!! :(

 

Vakar pec tutorialja MySQL + Apache + php servri! Viss gāja! Shodien slēdzu datoru iekšā a šis man saka "There seems to have been a problem with the database.

Please try again by clicking the Refresh button in your web browser."

 

Spežu refreš bet atkal tas pats! Ejot phpmyadmin "MySQL teica:

 

#2003 - Serveris neatbild"

 

Ko man darīt? Kas tur notiek?

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...