es_inc_php['Idea']),
array(':!:', 'icon_exclaim.gif', $lang_smilies_inc_php['Exclamation']),
array(':?:', 'icon_question.gif', $lang_smilies_inc_php['Question'])
);
}
// Smilies code ... would this be better tagged on to the end of bbcode.php?
// Probably so and I'll move it before B2
function process_smilies($message, $url_prefix = '')
{
static $orig, $repl;
if (!isset($orig)) {
global $db, $board_config,$THEME_DIR;
$orig = $repl = array();
$smilies = get_smilies_table1();
$paths = array($THEME_DIR.'/smiles/','images/smiles/');
for($i = 0; $i < count($smilies); $i++) {
$orig[] = "/(?<=.\W|\W.|^\W)" . preg_quote($smilies[$i][0], "/") . "(?=.\W|\W.|\W$)/";
$smile_path = (file_exists($paths[0].$smilies[$i][1]))?($paths[0]):($paths[1]);
$repl[] = '
';
}
}
if (count($orig)) {
$message = preg_replace($orig, $repl, ' ' . $message . ' ');
$message = substr($message, 1, -1);
}
return $message;
}
// Fill smiley templates (or just the variables) with smileys
// Either in a window or inline
function generate_smilies($form = 'post', $field = 'message')
{
global $THEME_DIR;
$smilies = get_smilies_table2();
$paths = array($THEME_DIR.'/smiles/','images/smiles/');
if (function_exists('theme_generate_smilies'))
{
$html = theme_generate_smilies($smilies, $form);
}
else
{
$html = '
' . "\n" . ' ' . "\n";
foreach($smilies as $smiley) {
$smile_path = (file_exists($paths[0].$smiley[1]))?($paths[0]):($paths[1]);
$caption = $smiley[2] . " " . $smiley[0];
$html .= '  | ' . "\n";
}
$html .= '
' . "\n" . '
' . "\n";
}
$html .= <<
EOT;
$html .= "\n";
return $html;
}
?>
Парапланы и кайты в Красноярске - Фотогалерея - Кубок Хакасии, 11-15 июня 2008/CIMG1832