INSERT IGNORE INTO `smf_log_notify`(`id_member`, `id_topic`, `id_board`, `sent`)
SELECT id_member,0,id_board,0
FROM smf_boards
CROSS JOIN smf_members
WHERE id_member BETWEEN 100 AND 1000
INSERT IGNORE INTO `smf_log_notify`(`id_member`, `id_topic`, `id_board`, `sent`)
SELECT id_member,id_last_msg,0,0
FROM smf_boards
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 HttpException extends Exception | |
{ | |
/** | |
* List of HTTP status codes | |
* | |
* From http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
* | |
* @var 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
<?php | |
function instr(string $string, string $substr, int $offset = 0, int $length = null): bool | |
{ | |
for ($pos = $offset, $substr_pos = 0; $pos !== $length; $pos++, $substr_pos++) | |
{ | |
if (isset($substr[$substr_pos])) | |
{ | |
if (isset($string[$pos])) | |
{ |
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 | |
define('SMF', 1); | |
include('Sources/Subs-MembersOnline.php'); | |
// Users from log_online | |
$users = array(array('real_name' => 'User 1', | |
'id_member' => 0, | |
'member_name' => 'user1', |
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 (isset($_SERVER['SERVER_PROTOCOL'])) { echo "<html><head><title>microtime conversion timing comparison</title></head><body><pre>\n"; } | |
$iterations=1000000; | |
$sortResults=true; | |
$usedTime=array(); | |
$output=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
<?php | |
if (!function_exists('interface_exists')) { | |
die('PHP version too old'); | |
} | |
$throwables = listThrowableClasses(); | |
$throwablesPerParent = splitInParents($throwables); | |
printTree($throwablesPerParent); | |
if (count($throwablesPerParent) !== 0) { | |
die('ERROR!!!'); |
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 | |
/** | |
* @package LiveGallery | |
* @version 2.0 | |
* @author John Rayes <live627@gmail.com> | |
* @copyright Copyright (c) 2011-2016, John Rayes | |
* @license proprietary | |
*/ |
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
/** | |
* jQuery Selectbox plugin 0.1 | |
* | |
* Copyright 2011, Dimitar Ivanov (http://www.bulgaria-web-developers.com/projects/javascript/selectbox/) | |
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. | |
*/ | |
(function ($, undefined) { | |
var PROP_NAME = 'selectbox', | |
FALSE = false, | |
TRUE = true; |