Yeah, that's truePleegWat wrote:Zanix, I don't see why that's a problem. You've been saying yourself that we need a reason to make stuff really 3.x incompatible to stop support requests on that. This seems an excellent thing for it.
zanix wrote:Can you use the file from the first post for roster 1.7.1?
Some things were added/changed
Exerladan wrote:zanix wrote:Can you use the file from the first post for roster 1.7.1?
Some things were added/changed
Ok no problem, I'll do it today
.classDruidetxt { color:#A69D91; }
.classChasseurtxt { color:#FFC835; }
.classMagetxt { color:#E11C14; }
.classPaladintxt { color:#B5BDB0; }
.classPrêtretxt { color:#48CBBD; }
.classVoleurtxt { color:#C3EB88; }
.classChamantxt { color:#7B480C; }
.classDémonistetxt { color:#A07AAD; }
.classGuerriertxt { color:#3C77B3; }
/**
* Change DB encoding to UTF8
*
* @return bool
*/
function changeDBEncoding()
{
$prefix = substr( ROSTER_CONFIGTABLE , 0, - strlen( 'config' ) );
$tableResult = $this->query( 'SHOW TABLES' );
while( $table = $this->getrow( $tableResult ) ) {
$tableName = $table[key($table)];
if ( substr( $tableName, 0, strlen( $prefix ) ) == $prefix ) {
$this->query( 'ALTER TABLE `'.$tableName.'` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci' );
}
$columnResult = $this->query( 'SHOW COLUMNS FROM `'.$tableName.'`' );
while( $column = $this->getrow( $columnResult ) ) {
if ( ( substr( $column['Type'], 0, 7 ) == 'varchar' ) || ( substr( $column['Type'], 0, 4 ) == 'char' ) || ( substr( $column['Type'], 0, 4 ) == 'text' ) ) {
$this->query( 'ALTER TABLE `'.$tableName.'` CHANGE `'.$column['Field'].'` `'.$column['Field'].'` '.$column['Type'].' CHARACTER SET utf8 COLLATE utf8_general_ci' );
}
}
}
return true;
}
/**
* Change client encoding to UTF8
*
* Execute this method before any other query
*
* @return bool
*/
function changeClientEncoding()
{
$this->query( 'SET CHARACTER SET \'utf8\'' );
return true;
}
/**
* Get MySQL version
*
* Execute this method before any other query
*
* @return string
*/
function getMySQLVersion()
{
$result = $this->query( 'SHOW VARIABLES LIKE \'version\'' );
$version = $this->getrow( $result );
return $version['Value'];
}
Return to Languages / Localization
Users browsing this forum: No registered users and 0 guests