Administrator
3wProducer
Imagination is more Important than Knowledge
08.05.2017 21:24:16
Topic Starter
United States
|
|
Link: http://poligon.ricoroco.com/fora/smf/index.php?topic=18.msg71#msg71
|
|
test test - to jest testowy Topic do testowania mozliwości GeSHi! HTML => Test: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd[/url]"><html xmlns="[url]http://www.w3.org/1999/xhtml[/url]" xml:lang="pl" lang="pl"> <head> <title>H-DCLUB </title> <link rel="stylesheet" href="H-DCLUB_files/style.css" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <object type="audio/x-wav" data="[url]http://h-dclub.pl/data/sound.wav[/url]" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="player" width="0" height="0"> <param name="url" value="[url]http://h-dclub.pl/data/sound.wav[/url]" /> <param name="src" value="[url]http://h-dclub.pl/data/sound.wav[/url]" /> <param name="autostart" value="true" /> <param name="showcontroller" value="0" /> <param name="volume" value="70" /> <param name="showdisplay" value="0" /> <param name="loop" value="0" /> <!--[if !IE]>--> <object type="audio/x-wav" data="[url]http://h-dclub.pl/data/sound.wav[/url]" width="0" height="0"> <param name="src" value="[url]http://h-dclub.pl/data/sound.wav[/url]" /> <param name="autostart" value="true" /> <param name="showcontroller" value="0" /> <param name="showdisplay" value="0" /> <param name="volume" value="70" /> <param name="loop" value="0" /> </object> <!--<![endif]--> </object> <div id="glowny"> <div id="main"> <div id="ramkagora"></div> <div id="inside"> <div id="orange_lewo"><img src="H-DCLUB_files/scan_lewo.gif" alt="" /></div> <div id="orange_prawo"><img src="H-DCLUB_files/scan_prawo.gif" alt="" /></div> <div id="logo"><img src="H-DCLUB_files/logo.jpg" alt="" /></div> <div id="flagapol"> <a href="#" onfocus="blur();"><img src="H-DCLUB_files/pol.jpg" alt="" /></a></div> <div id="flagaang"> <a href="#" onfocus="blur();"><img src="H-DCLUB_files/ang.jpg" alt="" /></a></div> </div> <div id="ramkadol"></div> </div> </div> </body></html> // Created by GeSHi 1.0.8.10 | code: -› [code=HTML] | load:0.013s | speed:147.42 KB/s PHP => Test: <?php// Version: 1.1; Who// The only template in the file.function template_main (){ global $context, $settings, $options, $scripturl, $txt; // Display the table header and linktree. echo ' <div style="padding: 3px;">', theme_linktree (), '</div> <table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder"> <tr class="titlebg"> <td width="30%"><a href="' . $scripturl . '?action=who;start=', $context['start'], ';sort=user', $context['sort_direction'] != 'down' && $context['sort_by'] == 'user' ? '' : ';asc', '">', $txt['who_user'], ' ', $context['sort_by'] == 'user' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td> <td style="width: 14ex;"><a href="' . $scripturl . '?action=who;start=', $context['start'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td> <td>', $txt['who_action'], '</td> </tr>'; // This is used to alternate the color of the background. $alternate = true; // For every member display their name, time and action (and more for admin). foreach ($context['members'] as $member) { // $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg". echo ' <tr class="windowbg', $alternate ? '2' : '', '"> <td>'; // Guests don't have information like icq, msn, y!, and aim... and they can't be messaged. if (!$member['is_guest']) { echo ' <div style="float: right; width: 14ex;"> ', $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" align="middle" />' : $member['online']['text'], $context['can_send_pm'] ? '</a>' : '', ' ', $member['Skype']['link'], ' ', $member['GG']['link'], ' ', $member['Tlen']['link'], ' ', $member['icq']['link'], ' ', $member['msn']['link'], ' ', $member['yim']['link'], ' ', $member['aim']['link'], ' </div>'; } echo ' <span', $member['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . $txt[92] . ' ' . $member['name'] . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', '</span>'; if (!empty($member['ip'])) echo ' (<a href="' . $scripturl . '?action=trackip;searchip=' . $member['ip'] . '" target="_blank">' . $member['ip'] . '</a>)'; echo ' </td> <td nowrap="nowrap">', $member['time'], '</td> <td>', $member['action'], '</td> </tr>'; // Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.) $alternate = !$alternate; } echo ' <tr class="titlebg"> <td colspan="3"><b>', $txt[139], ':</b> ', $context['page_index'], '</td> </tr> </table>';}?> // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.042s | speed:73.43 KB/s PHP-Brief => Test: <?phpif (!defined('SMF')) die('Hacking attempt...');function PrintTopic (){ global $db_prefix, $topic, $txt, $scripturl, $context; global $board_info; if (empty($topic)) fatal_lang_error (472, false); // Get the topic starter information. $request = db_query (" SELECT m.posterTime, IFNULL(mem.realName, m.posterName) AS posterName FROM {$db_prefix}messages AS m LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER) WHERE m.ID_TOPIC = $topic ORDER BY ID_MSG LIMIT 1", __FILE__, __LINE__); if (mysql_num_rows($request) == 0) fatal_lang_error ('smf232'); $row = mysql_fetch_assoc($request); mysql_free_result($request); // Lets "output" all that info. loadTemplate ('Printpage'); $context['template_layers'] = array('print'); $context['board_name'] = $board_info['name']; $context['category_name'] = $board_info['cat']['name']; $context['poster_name'] = $row['posterName']; $context['post_time'] = timeformat ($row['posterTime'], false); // Split the topics up so we can print them. $request = db_query (" SELECT subject, posterTime, body, IFNULL(mem.realName, posterName) AS posterName FROM {$db_prefix}messages AS m LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER) WHERE ID_TOPIC = $topic ORDER BY ID_MSG", __FILE__, __LINE__); $context['posts'] = array(); while ($row = mysql_fetch_assoc($request)) { // Censor the subject and message. censorText ($row['subject']); censorText ($row['body']); $context['posts'][] = array( 'subject' => $row['subject'], 'member' => $row['posterName'], 'time' =>  ; timeformat ($row['posterTime'], false), 'timestamp' => forum_time (true, $row['posterTime']), 'body' => parse_bbc ($row['body'], 'print'), ); if (!isset($context['topic_subject'])) $context['topic_subject'] = $row['subject']; } mysql_free_result($request);}?> // Created by GeSHi 1.0.8.10 | code: -› [code=PHP (brief)] | load:0.011s | speed:163.87 KB/s CSS => Test: body { color:#06F; margin:0; padding:0; }
div.clear { height:1px; }
#alternativeContent,#output { width:660px; }
#publishingMethodHelp,#alternativeContentHelp,#replaceIdHelp { display:none; width:650px; }
#toggleReplaceId,#isIdReq,#toggleAttsParamsContainer { display:none; }
* { font-family:"Lucida Grande","Lucida Sans Unicode",Verdana,sans-serif; font-size:8pt; line-height:1.3em; }
textarea,.textarea { font-family:Tahoma,sans-serif; font:8pt; font-weight:500; line-height:1.3em; overflow:auto; white-space:normal; background-color:#FFFFF0; border:1px dotted; width:100%; clear:both; margin:5px; padding:2px; }
textarea:hover,.textarea:hover { background-color:#ffc; }
fieldset { margin:6px 2px; padding:2px; }
input,.input { overflow:hidden; vertical-align:middle; line-height:14px; color:#06f; background:#faf0e6; border:1px dotted; padding:1px; }
input:hover,.input:hover,.button:hover,button:hover,select:hover,.select:hover { background:#ffc; }
select,.select { overflow:hidden; vertical-align:middle; line-height:14px; color:#06f; background:#faf0e6; border:1px dotted; top:0; left:1px; right:0; padding:-1px; }
input.checkbox,.checkbox { border:1px dotted; background:#faf0e6; color:#06F; vertical-align:middle; text-align:center; padding:0; }
.button,button { vertical-align:middle; letter-spacing:2px; border:1px solid; color:#06F; font-size:8pt; font-weight:500; padding:1px; }
h1 { font-size:18px; text-align:center; margin:2px; }
a { color:#FF4500; text-decoration:none; font:Arial 8pt bold; }
.info { border-bottom:1px dotted #666; cursor:help; }
.req { color:red; }
.note { font-size:10px; color:#666; }
.help { border:1px solid #ccc; background-color:#ffc; margin:0 0 10px; padding:10px 10px 0; }
.help h2,.help h3,.help p,.help ul,.help li { font-size:11px; line-height:14px; margin:0; }
.help h2,.help p,.help ul { padding-bottom:10px; }
.help h3 { color:#666; }
.img:hover { background-color:red; text-decoration:blink; }
div,value { vertical-align:middle; }
// Created by GeSHi 1.0.8.10 | code: -› [code=CSS] | load:0.008s | speed:260.55 KB/s JavaScript => Test: <script language="JavaScript" type="text/javascript"> //<![CDATA[ <!-- Begin var months=new Array(13); months[1]="Styczeń"; months[2]="Luty"; months[3]="Marzec"; months[4]="Kwiecień"; months[5]="Maj"; months[6]="Czerwiec"; months[7]="Lipiec"; months[8]="Sierpień"; months[9]="Wrzesień"; months[10]="PaĽdziernik"; months[11]="Listopad"; months[12]="Grudzień"; var time=new Date(); var lmonth=months[time.getMonth() + 1]; var date=time.getDate(); var year=time.getYear();
if (year < 2000) // Y2K Fix, Isaac Powell year = year + 1900; // [url]http://onyx.idbsu.edu/~ipowell[/url]
var timerID = null; var timerRunning = false;
function showtime () { var now = new Date(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds(); var timeValue = "" + ((hours >24) ? hours -24 :hours) if (timeValue == "0") timeValue = 24; timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds timeValue += (hours >= 24) ? " " : " " document.getElementById("daClock").innerHTML = date + " " + lmonth + " " + year + " " + timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true; }
showtime(); // End --> //]]> </script>
// Created by GeSHi 1.0.8.10 | code: -› [code=Javascript] | load:0.005s | speed:255.33 KB/s XML => Test: <?xml version="1.0"?> <!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification"> <modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/"> <id>HarzeM:BoardViewers</id> <version>1.2</version> <homepage>[url]http://www.harzem.com/[/url]</homepage> <file name="$sourcedir/ModSettings.php"> <operation> <search position="before"><![CDATA[ array('check', 'who_enabled'), ]]></search> <add><![CDATA[ '', // Board Viewers By HarzeM array('check', 'enable_board_viewers'), array('check', 'boardViewersGuestsMembers'), array('check', 'boardViewersClickable'), array('check', 'countChildPosts'), ]]></add> </operation> </file> <file name="$themedir/BoardIndex.template.php"> <operation> <search position="after"><![CDATA[<b><a href="', $board['href'],]]></search> <add><![CDATA[',$board['viewer_text'],']]></add> </operation> <operation> <search position="before"><![CDATA[$child['posts']]]></search> <add><![CDATA[ . $child['viewer_text']]]></add> </operation> </file> <file name="$themedir/MessageIndex.template.php"> <operation> <search position="after"><![CDATA[<b><a href="', $board['href'],]]></search> <add><![CDATA[',$board['viewer_text'],']]></add> </operation> <operation> <search position="before"><![CDATA[$child['posts']]]></search> <add><![CDATA[ . $child['viewer_text']]]></add> </operation> </file> <file name="$boarddir/index.php"> <operation> <search position="before"><![CDATA[ 'viewErrorLog' => array('ManageErrors.php', 'ViewErrorLog'),]]></search> <add><![CDATA[ 'viewers' => array('Viewers.php', 'BoardViewers'),]]></add> </operation> </file> <file name="$sourcedir/BoardIndex.php"> <operation> <search position="before"><![CDATA[ // Remember the most recent topic for optimizing the recent posts feature. $most_recent_topic = array( 'timestamp' => 0, 'ref' => null );]]></search>
// Created by GeSHi 1.0.8.10 | code: -› [code=XML] | load:0.004s | speed:479.72 KB/s Koniec testu! r.
Attention! Testing modifications - Steam Profile
|