This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main () | |
{ | |
printf("Hello World!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -rux cache phpBB3/install/install_install.php install_quiz/install/install_install.php | |
--- phpBB3/install/install_install.php 2009-05-31 13:59:00.000000000 +0200 | |
+++ install_quiz/install/install_install.php 2009-06-27 14:39:24.000000000 +0200 | |
@@ -35,7 +35,7 @@ | |
'module_filename' => substr(basename(__FILE__), 0, -strlen($phpEx)-1), | |
'module_order' => 10, | |
'module_subs' => '', | |
- 'module_stages' => array('INTRO', 'REQUIREMENTS', 'DATABASE', 'ADMINISTRATOR', 'CONFIG_FILE', 'ADVANCED', 'CREATE_TABLE', 'FINAL'), | |
+ 'module_stages' => array('INTRO', 'QUIZ', 'REQUIREMENTS', 'DATABASE', 'ADMINISTRATOR', 'CONFIG_FILE', 'ADVANCED', 'CREATE_TABLE', 'FINAL'), | |
'module_reqs' => '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!empty($_POST['submit'])) | |
{ | |
// do a lot of stuff | |
// insert the code from process.php here | |
// done | |
// confirm message | |
meta_refresh(...); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# phpBB QuickInstall - bash version | |
function create { | |
# replace files | |
rm -rf "$board_dir/$1" | |
cp -rf "$fresh_dir" "$board_dir/$1" | |
# create tables | |
# drop database not needed when mysqldump is used |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parse the message and subject | |
$message = censor_text($row['post_text']); | |
// Second parse bbcode here | |
if ($row['bbcode_bitfield']) | |
{ | |
$bbcode->bbcode_second_pass($message, $row['bbcode_uid'], $row['bbcode_bitfield']); | |
} | |
$message = bbcode_nl2br($message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="panel" style="background: #992323; color: #FFFFFF;"> | |
<div class="inner"><span class="corners-top"><span/></span> | |
<h3>A title</h3> | |
<p style="font-size: 11px;"> | |
Some content. | |
</p> | |
<span class="corners-bottom"><span/></span></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preg_match('#^([a-z/_]+)#i', $row['session_page'], $on_page); | |
if (!sizeof($on_page)) | |
{ | |
$on_page[1] = ''; | |
} | |
if (strlen($on_page[1]) && $on_page[1][0] === '/') | |
{ | |
$on_page = explode('/', $row['session_page']); | |
$on_page = array_diff($on_page, array('')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
company: Kuwata lab. | |
email: [email protected] | |
employees: | |
- | |
code: 101 | |
name: foo | |
email: [email protected] | |
- | |
code: 102 | |
name: bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class session_storage | |
{ | |
protected $session_id; | |
protected $db; | |
protected $user; | |
public function __construct($session_id, dbal $db, user $user) | |
{ |
OlderNewer