[ SPEL ] Wat zit er onder CTRL+V?
Forumregels
Dit forum is voor alle zinnige gesprekken buiten phpBB om. Discussies en gesprekken over interessante onderwerpen.
Een nieuw onderwerp moet..:
Dit forum is voor alle zinnige gesprekken buiten phpBB om. Discussies en gesprekken over interessante onderwerpen.
Een nieuw onderwerp moet..:
- uiteraard voldoen aan de algemene voorwaarden
- niet passen in de gewone supportfora
- interessante zijn voor het overgrote deel van onze gebruikers
- een neutrale of positieve ondertoon hebben
- anders zijn dan bestaande onderwerpen
Your installation is up to date, no updates are available for your version of phpBB.
KNAVIVO DIERENHULP
Stimuleer verdraagzaamheid. Wees eens wat vaker irritant.
Stimuleer verdraagzaamheid. Wees eens wat vaker irritant.
- Wout -- w00t
- Berichten: 815
- Lid geworden op: 07 jan 2005, 12:57
- Locatie: Eindhoven, NL
- Lady Elensar
- Berichten: 592
- Lid geworden op: 17 okt 2005, 00:48
if ($row['total_posts'])
{
// Correct the details of this topic
$sql = 'UPDATE ' . TOPICS_TABLE . '
SET topic_replies = ' . ($row['total_posts'] - 1) . ', topic_first_post_id = ' . $row['first_post'] . ', topic_last_post_id = ' . $row['last_post'] . "
WHERE topic_id = $id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql);
}
}
else
{
// There are no replies to this topic
// Check if it is a move stub
$sql = 'SELECT topic_moved_id
FROM ' . TOPICS_TABLE . "
WHERE topic_id = $id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not get topic ID', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
if (!$row['topic_moved_id'])
{
$sql = 'DELETE FROM ' . TOPICS_TABLE . " WHERE topic_id = $id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not remove topic', '', __LINE__, __FILE__, $sql);
}
}
}
$db->sql_freeresult($result);
}
{
// Correct the details of this topic
$sql = 'UPDATE ' . TOPICS_TABLE . '
SET topic_replies = ' . ($row['total_posts'] - 1) . ', topic_first_post_id = ' . $row['first_post'] . ', topic_last_post_id = ' . $row['last_post'] . "
WHERE topic_id = $id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql);
}
}
else
{
// There are no replies to this topic
// Check if it is a move stub
$sql = 'SELECT topic_moved_id
FROM ' . TOPICS_TABLE . "
WHERE topic_id = $id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not get topic ID', '', __LINE__, __FILE__, $sql);
}
if ($row = $db->sql_fetchrow($result))
{
if (!$row['topic_moved_id'])
{
$sql = 'DELETE FROM ' . TOPICS_TABLE . " WHERE topic_id = $id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not remove topic', '', __LINE__, __FILE__, $sql);
}
}
}
$db->sql_freeresult($result);
}
- Diablo Gamer
- Berichten: 1394
- Lid geworden op: 02 jan 2004, 20:33
- Locatie: Dalen/Drenthe/Holland
- Contacteer:
// BEGIN Advanced Topic Type MOD
//
// Topic type selection
//
$topic_type_toggle = '';
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$template->assign_block_vars('switch_type_toggle', array());
$topic_type_toggle .= '<select name="topictype">';
$topic_type_toggle .= '<option value="'. POST_NORMAL .'"' . ( ( $post_data['topic_type'] == POST_NORMAL || $topic_type == POST_NORMAL ) ? ' selected' : '' ) . '>'. $lang['Post_Normal'] .'</option>';
if( $is_auth['auth_sticky'] )
{
$topic_type_toggle .= '<option value="' . POST_STICKY . '"';
if ( $post_data['topic_type'] == POST_STICKY || $topic_type == POST_STICKY )
{
$topic_type_toggle .= ' selected';
}
$topic_type_toggle .= '>'. $lang['Post_Sticky'] . '</option>';
}
if( $is_auth['auth_announce'] )
{
$topic_type_toggle .= '<option value="' . POST_ANNOUNCE . '"';
if ( $post_data['topic_type'] == POST_ANNOUNCE || $topic_type == POST_ANNOUNCE )
{
$topic_type_toggle .= ' selected';
}
$topic_type_toggle .= '>'. $lang['Post_Announcement'] . '</option>';
}
$sql_tt = "SELECT * FROM ". TOPIC_ADD_TYPE_TABLE ." ORDER BY topic_type_order DESC";
$result_tt = $db->sql_query($sql_tt);
while( $add_type = $db->sql_fetchrow($result_tt) )
{
if( ( ( $userdata['user_level'] >= $add_type['topic_type_auth'] && $add_type['topic_type_auth'] != ADMIN ) || $userdata['user_level'] == ADMIN ) && ( $add_type['topic_type_name'] != 'announce' && $add_type['topic_type_name'] != 'sticky' ) )
{
$topic_add_type = intval( $add_type['topic_type_order'] + POST_ADD_TYPE );
$topic_type_toggle .= '<option value="' . $topic_add_type . '"';
if ( $post_data['topic_type'] == $topic_add_type || $topic_type == $topic_add_type )
{
$topic_type_toggle .= ' selected';
}
$topic_type_toggle .= '>'. stripslashes($add_type['topic_type_name']) . '</option>';
}
}
$topic_type_toggle .= '</select>';
$topic_type_toggle = $lang['Post_topic_as'] . ': '. $topic_type_toggle;
}
// END Advanced Topic Type MOD
//
// Topic type selection
//
$topic_type_toggle = '';
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$template->assign_block_vars('switch_type_toggle', array());
$topic_type_toggle .= '<select name="topictype">';
$topic_type_toggle .= '<option value="'. POST_NORMAL .'"' . ( ( $post_data['topic_type'] == POST_NORMAL || $topic_type == POST_NORMAL ) ? ' selected' : '' ) . '>'. $lang['Post_Normal'] .'</option>';
if( $is_auth['auth_sticky'] )
{
$topic_type_toggle .= '<option value="' . POST_STICKY . '"';
if ( $post_data['topic_type'] == POST_STICKY || $topic_type == POST_STICKY )
{
$topic_type_toggle .= ' selected';
}
$topic_type_toggle .= '>'. $lang['Post_Sticky'] . '</option>';
}
if( $is_auth['auth_announce'] )
{
$topic_type_toggle .= '<option value="' . POST_ANNOUNCE . '"';
if ( $post_data['topic_type'] == POST_ANNOUNCE || $topic_type == POST_ANNOUNCE )
{
$topic_type_toggle .= ' selected';
}
$topic_type_toggle .= '>'. $lang['Post_Announcement'] . '</option>';
}
$sql_tt = "SELECT * FROM ". TOPIC_ADD_TYPE_TABLE ." ORDER BY topic_type_order DESC";
$result_tt = $db->sql_query($sql_tt);
while( $add_type = $db->sql_fetchrow($result_tt) )
{
if( ( ( $userdata['user_level'] >= $add_type['topic_type_auth'] && $add_type['topic_type_auth'] != ADMIN ) || $userdata['user_level'] == ADMIN ) && ( $add_type['topic_type_name'] != 'announce' && $add_type['topic_type_name'] != 'sticky' ) )
{
$topic_add_type = intval( $add_type['topic_type_order'] + POST_ADD_TYPE );
$topic_type_toggle .= '<option value="' . $topic_add_type . '"';
if ( $post_data['topic_type'] == $topic_add_type || $topic_type == $topic_add_type )
{
$topic_type_toggle .= ' selected';
}
$topic_type_toggle .= '>'. stripslashes($add_type['topic_type_name']) . '</option>';
}
}
$topic_type_toggle .= '</select>';
$topic_type_toggle = $lang['Post_topic_as'] . ': '. $topic_type_toggle;
}
// END Advanced Topic Type MOD
In progress: Stappen in Emmen
- Lady Elensar
- Berichten: 592
- Lid geworden op: 17 okt 2005, 00:48
You forgot to typ the [url] in front of this link. If someone clicks on this link, he/she gets an error. But I copied the link, and saw the picture, and they are really cute!

And about my (our) animals:
I've 4 fishes (Schubunkins), 2 rats and 1 rabbit (she's mine and my mothers).
We all have a dog, a bird (canary) in a cage in the kitchen, and a vollière (don't know how to translate it to English, but it's a bird cage outside, with about 30 birds) and we have a tropical aquarium, with beautiful fishes.
And my brother has a quinea pig.
- Bas
- Berichten: 2741
- Lid geworden op: 02 dec 2003, 17:38
- Locatie: Omgeving Goslar (Duitsland)
- Contacteer:
Door omstandigheden (Microsoft) bestaat het .NET Passport (dus MSN-naam) bas.timmer@gmail.com niet meer. Voeg dus bas_timmer49@hotmail.com toe/accepteer hem! (Dat is mijn alternatieve account)
.Bas Hosting, gratis hosting met FTP, PHP en MySQL | viennaCMS, simpel flexibel open source CMS
Hoe ban je tegenwoordig? 'Deny' bij alle rechten!
Hoe ban je tegenwoordig? 'Deny' bij alle rechten!
error_reporting(0);//(E_ALL);
$timing_start = explode(' ', microtime());
/**
*
*
* @version $Id$
* @copyright 2004
**/
//header("Content-type: image/png");
//$url = "http://www.phpbb.nl/search.php?search_author=paulus";
$r = $_SERVER['HTTP_REFERER'];
if($r){
$fout = false;
if(eregi("phpbb.nl",$r) && !eregi("paulscripts.nl",$r)){
/* $url = "http://www.phpbb.nl/search.php?search_author=paulus";*/
$new_width = 80;
$new_height = 80;
$phpbb = true;
$fout = true;
}elseif(eregi("webmastercity.nl",$r)){
$url = "http://www.webmastercity.nl/forum/searc ... or=paul999";
$new_width = 100;
$new_height = 100;
}else{
$fout = true;
}
}else{
$fout = true;
$url = '';
$new_width = 90;
$new_height = 90;
}
if(!$fout){
$start = '<td align="left" valign="bottom"><span class="maintitle">';
$end = " resultaten gevonden</span><br /></td>";
/*$start = "Totaal berichten: </span></td>";
$end = "</b><br /><span class=\"genmed\">\\[";*/
$read = file_get_contents($url);
$data = eregi("$start(.*)$end", $read, $output);
$output = str_replace("<td>", "", $output[1]);
$output = str_replace("<td valign=\"top\">", "", $output);
$output = str_replace("<tr>", "", $output);
$output = str_replace("</td>", "", $output);
$output = str_replace("</tr>", "", $output);
$output = str_replace("<b>", "", $output);
$output = str_replace("<span>", "", $output);
$output = str_replace("<span class=\"gen\">", "", $output);
$output = str_replace("</span>", "", $output);
$output = str_replace("</b>", "", $output);
$output = str_replace("\t", "", $output);
$output = str_replace("\n", "", $output);
//$output = str_replace("<b>", "", $output);
$bericht = "".$output;//." posts";
}elseif($phpbb){
$bericht = 'Phpbb.nl';
$new_width = 90;
$new_height = 90;
}else{
$bericht = 'Fout
';
$new_width = 90;
$new_height = 90;
}
//include('./includes/dynamic_gd_image.php');
//paul.jpg
$gdfonts = array(
'8x13iso', '9x15iso', 'andale12', 'atommicclock', 'bmreceipt',
'chowfun', 'courier8', 'dimurph', 'georgia8', 'proggyclean',
'proggysquare', 'systemex', 'terminal6', 'trisk'
);
@header('Content-type: image/gif');
$im = imagecreatefromjpeg('./subSilver_post_buttons.jpg');
$width = imagesx($im);
$height = imagesy($im);
$new_height = $height;
$new_width = $width;
$image_text = array();
$image_text[0] = array();
$image_text[0]['x'] = 25;
$image_text[0]['y'] = 0;//'65';
$image_text[0]['color'] = array(0,0,0);
$image_text[0]['font'] = '6';
$image_text[0]['text'] = $bericht;
$image_text[1] = array();
$image_text[1]['x'] = 25;
$image_text[1]['y'] = 11;//'65';
$image_text[1]['color'] = array(0,0,0);
$image_text[1]['font'] = '6';
$image_text[1]['text'] = "Posts";
//$new_width = 80;
//$new_height = 80;
# Create a new temporary image
$tmp_img = imagecreatetruecolor($new_width, $new_height);
# Copy and resize old image into new image
imagecopyresized($tmp_img, $im, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
imagedestroy($im);
$im = $tmp_img;
$rgb = ( isset($image_info['color']) ? $image_info['color'] : array(255, 255, 255) );
$bgColor = imagecolorallocate($im, $rgb[0], $rgb[1], $rgb[2]);
for( $i = 0; $i < count($image_text); $i++ )
{
if( !is_numeric($image_text[$i]['font']) )
{
$font = 1;
}
else if( $image_text[$i]['font'] < 0 )
{
$font = $image_text[$i]['font'] * -1;
}
else
{
if( !($font = imageloadfont('./gd_fonts/'.$gdfonts[$image_text[$i]['font']].'.gdf')) )
{
$font = 1;
}
}
$rgb = $image_text[$i]['color'];
$fgColor = imagecolorallocate($im, $rgb[0], $rgb[1], $rgb[2]);
imagestring($im, $font, $image_text[$i]['x'], $image_text[$i]['y'], $image_text[$i]['text'], $fgColor);
}
header("Content-type: image/gif");
imagegif($im);
imagedestroy($im);
$timing_stop = explode(' ', microtime());
$rendertime = number_format((($timing_stop[0]+$timing_stop[1])-($timing_start[0]+$timing_start[1])), 4);
$o = fopen("log2.php","a");
fwrite($o,$rendertime."\n<br />");
fclose($o);
$timing_start = explode(' ', microtime());
/**
*
*
* @version $Id$
* @copyright 2004
**/
//header("Content-type: image/png");
//$url = "http://www.phpbb.nl/search.php?search_author=paulus";
$r = $_SERVER['HTTP_REFERER'];
if($r){
$fout = false;
if(eregi("phpbb.nl",$r) && !eregi("paulscripts.nl",$r)){
/* $url = "http://www.phpbb.nl/search.php?search_author=paulus";*/
$new_width = 80;
$new_height = 80;
$phpbb = true;
$fout = true;
}elseif(eregi("webmastercity.nl",$r)){
$url = "http://www.webmastercity.nl/forum/searc ... or=paul999";
$new_width = 100;
$new_height = 100;
}else{
$fout = true;
}
}else{
$fout = true;
$url = '';
$new_width = 90;
$new_height = 90;
}
if(!$fout){
$start = '<td align="left" valign="bottom"><span class="maintitle">';
$end = " resultaten gevonden</span><br /></td>";
/*$start = "Totaal berichten: </span></td>";
$end = "</b><br /><span class=\"genmed\">\\[";*/
$read = file_get_contents($url);
$data = eregi("$start(.*)$end", $read, $output);
$output = str_replace("<td>", "", $output[1]);
$output = str_replace("<td valign=\"top\">", "", $output);
$output = str_replace("<tr>", "", $output);
$output = str_replace("</td>", "", $output);
$output = str_replace("</tr>", "", $output);
$output = str_replace("<b>", "", $output);
$output = str_replace("<span>", "", $output);
$output = str_replace("<span class=\"gen\">", "", $output);
$output = str_replace("</span>", "", $output);
$output = str_replace("</b>", "", $output);
$output = str_replace("\t", "", $output);
$output = str_replace("\n", "", $output);
//$output = str_replace("<b>", "", $output);
$bericht = "".$output;//." posts";
}elseif($phpbb){
$bericht = 'Phpbb.nl';
$new_width = 90;
$new_height = 90;
}else{
$bericht = 'Fout

$new_width = 90;
$new_height = 90;
}
//include('./includes/dynamic_gd_image.php');
//paul.jpg
$gdfonts = array(
'8x13iso', '9x15iso', 'andale12', 'atommicclock', 'bmreceipt',
'chowfun', 'courier8', 'dimurph', 'georgia8', 'proggyclean',
'proggysquare', 'systemex', 'terminal6', 'trisk'
);
@header('Content-type: image/gif');
$im = imagecreatefromjpeg('./subSilver_post_buttons.jpg');
$width = imagesx($im);
$height = imagesy($im);
$new_height = $height;
$new_width = $width;
$image_text = array();
$image_text[0] = array();
$image_text[0]['x'] = 25;
$image_text[0]['y'] = 0;//'65';
$image_text[0]['color'] = array(0,0,0);
$image_text[0]['font'] = '6';
$image_text[0]['text'] = $bericht;
$image_text[1] = array();
$image_text[1]['x'] = 25;
$image_text[1]['y'] = 11;//'65';
$image_text[1]['color'] = array(0,0,0);
$image_text[1]['font'] = '6';
$image_text[1]['text'] = "Posts";
//$new_width = 80;
//$new_height = 80;
# Create a new temporary image
$tmp_img = imagecreatetruecolor($new_width, $new_height);
# Copy and resize old image into new image
imagecopyresized($tmp_img, $im, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
imagedestroy($im);
$im = $tmp_img;
$rgb = ( isset($image_info['color']) ? $image_info['color'] : array(255, 255, 255) );
$bgColor = imagecolorallocate($im, $rgb[0], $rgb[1], $rgb[2]);
for( $i = 0; $i < count($image_text); $i++ )
{
if( !is_numeric($image_text[$i]['font']) )
{
$font = 1;
}
else if( $image_text[$i]['font'] < 0 )
{
$font = $image_text[$i]['font'] * -1;
}
else
{
if( !($font = imageloadfont('./gd_fonts/'.$gdfonts[$image_text[$i]['font']].'.gdf')) )
{
$font = 1;
}
}
$rgb = $image_text[$i]['color'];
$fgColor = imagecolorallocate($im, $rgb[0], $rgb[1], $rgb[2]);
imagestring($im, $font, $image_text[$i]['x'], $image_text[$i]['y'], $image_text[$i]['text'], $fgColor);
}
header("Content-type: image/gif");
imagegif($im);
imagedestroy($im);
$timing_stop = explode(' ', microtime());
$rendertime = number_format((($timing_stop[0]+$timing_stop[1])-($timing_start[0]+$timing_start[1])), 4);
$o = fopen("log2.php","a");
fwrite($o,$rendertime."\n<br />");
fclose($o);