* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ // // Security message: // // This script is potentially dangerous. // Remove or comment the next line (die(".... ) to enable this script. // Do NOT FORGET to either remove this script or disable it after you have used it. // die("Please read the first lines of this script for instructions on how to enable it"); @set_time_limit(2400); // This script adds missing permissions $db = $dbhost = $dbuser = $dbpasswd = $dbport = $dbname = ''; define('IN_PHPBB', 1); define('ANONYMOUS', 1); $phpEx = substr(strrchr(__FILE__, '.'), 1); $phpbb_root_path='./../'; include($phpbb_root_path . 'config.'.$phpEx); require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.'.$phpEx); require($phpbb_root_path . 'includes/db/' . $dbms . '.'.$phpEx); include($phpbb_root_path . 'includes/functions.'.$phpEx); $cache = new acm(); $db = new $sql_db(); // Connect to DB $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false); $sql = "SELECT post_id, post_text FROM {$table_prefix}posts WHERE post_text LIKE '%{SMILE_PATH}%'"; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { $db->sql_query("UPDATE {$table_prefix}posts SET post_text = '" . $db->sql_escape(str_replace('{SMILE_PATH}', '{SMILIES_PATH}', $row['post_text'])) . "' WHERE post_id = " . $row['post_id']); } $db->sql_freeresult($result); echo "
Done
\n"; BһNiK0)FTNڴoЍ}䍑"H(;Fw%kY./\ǃk FjJ;Gէ3U 9gcjt~BGtf+H Vb9F%%rfnQB<2U8c@ qXA|*()*A6sbaCd;'%3σ_qBdҹ,WtS-uv Y k3fwCj4泻dɶˁ{W^گW\x)0Sӫd ֊4+t)Dh`5CW hf2OeCf,fHM.ؔݜˋߴs?dJ應aaE8Vfqj$.Mϲx`mAK V W)3wUZ{Kx;8CM@>[#P Z&9DVSVRk=xWPic9YN ;/8< >vY } ]ؗm-8t̸mŻm$}}2o87obӹ6Wf2#̺&9Z[eJX-!p3#'0!KEfQ%*)VI$ywNL (ŹLaGf۟+n '@I[;Lڧ{$=6'8'I wz0]Bau\?Eogy"W.CUyݝ^oD= Gi۳O(Y#U2h3\ y@ެyu2 txxfvl}/+i(=d, HفO<0G܄ɩmH"8]w)]Zrͼn{ɭ+7R$3FێZ 1;:#G/A@"TO7u<NB,ߓ!b Pyř!L x)o&{хxʘuwjN٦6*tɪq)ۻc*_6 13$%3ZN~M_DX'j$23&Yaf:ʇͳ~zyJŎI)c"&Rx(R@Qij[b< "|Љ ya-'ADI:DER\,Q=t8[?(Ίr*%\;muBUnh H !zqZO-Ao@S̘0✢SC:ګ0C _{LHSCGrm]E郘=h>;D#Xgw3>@,R$69xWhؼD"%8BP$`y>K~߰U2iljnپBdEIx,&>P Y%_/_C[WB=3HZZ*4Tb={(q *(SAs!ʻ8ȓ7 YfΓh4CeC[n<.ԼP. gMP2y0:@'Lr%#$z\@*=ˋ2y 88VՐB*3Yh-yqiSa綇7A#vTF*H/rn}!etEC"ih<ݿv^YE(wʓ$