Wyszukujemy $ACT_GUILD_SET_DESC i podmieniamy: RET MA BYĆ PO BREAK!
Dodatkowo dodajemy do bazy danych guilds tabelę: arms, typ: text.
Spoiler
case $ACT_GUILD_SET_DESC :
// Changing the coat of arms and the description of the guild by Ilnezid for On-Game.pl
$data = explode ( ';', $action_extra );
$desc = urldecode ( '%A7' );
$desc = explode ( $desc, $data [2] );
$desc = $desc;
$qry = $db->prepare ( "UPDATE guilds SET description = :description, arms = :arms
WHERE guild_id = (SELECT user_data.guild_id FROM user_data WHERE user_data.ssid = :ssid)" );
$qry->bindParam ( ':description', urlencode($desc [1]) );
$qry->bindParam ( ':arms', urlencode ($desc [0]) );
$qry->bindParam ( ':ssid', $SSID );
if ($qry->execute ()) {
}
break;
$ret [$index + 6] .= ';'.urldecode($g_data ['arms']).'§'.urldecode($g_data ['description']).';';
break;
Piszcie jaki poradniki mam jeszcze dodać.
Brak komentarzy:
Prześlij komentarz