Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
//Prepare the Preview text $sMessagePreview = str_replace(array('<', '>'), array('<', '>'), Phpfox::getPhrase('core.welcome_email_content')); $sMessagePreview = Phpfox::getLib('parse.bbcode')->cleanCode($sMessagePreview); $sMessagePreview = Phpfox::getLib('parse.input')->clean($sMessagePreview, 255); //Get the first administrator as the sender $iAdminId = $this->database()->select('user_id')->from(Phpfox::getT('user'))->where('user_group_id = 1')->limit(1)->order('joined ASC')->execute('getField'); //Load the subject variable $sSubject = Phpfox::getPhrase('core.welcome_internal_mail_subject', array('site' => Phpfox::getParam('core.site_title'))); //Determine if you are using threaded or legacy message handling if(Phpfox::getLib('setting')->isParam('mail.threaded_mail_conversation') && Phpfox::getParam('mail.threaded_mail_conversation')) { //If using threaded messages, set up users for this thread //Define the hash_id for the mail_thread table //Insert the new thread record into the mail_thread table 'hash_id' => $sHashId, 'time_stamp' => PHPFOX_TIME ) ); //Define a mail_thread_user record for each thread user foreach ($aUserInsert as $iUserId) { 'thread_id' => $iMid, 'is_read' => ($iUserId == $iAdminId ? '1' : '0'), 'is_sent' => ($iUserId == $iAdminId ? '1' : '0'), 'is_sent_update' => ($iUserId == $iAdminId ? '1' : '0'), 'user_id' => (int) $iUserId ) ); } //Insert the mail_thread_text record for your welcome message 'thread_id' => $iMid, 'time_stamp' => PHPFOX_TIME, 'user_id' => $iAdminId, 'text' => Phpfox::getLib('parse.input')->prepare(Phpfox::getPhrase('core.welcome_email_content')), 'is_mobile' => ('0') ) ); //Now that we have a textId we can update the last_id column in the mail_thread entry that we made above $this->database()->update(Phpfox::getT('mail_thread'), array('last_id' => (int) $iTextId), 'thread_id = ' . (int) $iMid); } else { //This is for the old message system so we build an array for the mail table entry 'parent_id' => 0, 'subject' => $sSubject, 'preview' => $sMessagePreview, 'owner_user_id' => $iAdminId, 'viewer_user_id' => $iId, 'viewer_is_new' => 1, 'time_stamp' => PHPFOX_TIME, 'time_updated' => PHPFOX_TIME, 'total_attachment' => 0, ); //Insert the mail table entry $iMailId = $this->database()->insert(Phpfox::getT('mail'), $aInsert); //Build an array for the mail_text table 'mail_id' => $iMailId, 'text' => Phpfox::getLib('parse.input')->clean(Phpfox::getPhrase('core.welcome_email_content')), 'text_parsed' => Phpfox::getLib('parse.input')->prepare(Phpfox::getPhrase('core.welcome_email_content')) ); //Insert the mail_text entry $this->database()->insert(Phpfox::getT('mail_text'), $aContent); }
Title | Name | Language | UNIX | When |
---|---|---|---|---|
Re: phpfox | Botched Goat | php | 1376396017 | 11 Years ago. |