A PHP Error was encountered

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: 575
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)

Filename: view/rss.php

Line Number: 2

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/rss.php
Line: 2
Function: header

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 579
Function: view

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

mctest - Stikked mctest - Stikked http://geopaste.scratchbook.ch/ en Re: mctest http://geopaste.scratchbook.ch/view/81a0bbbe Tue, 11 Oct 2016 18:42:28 +0200 test http://geopaste.scratchbook.ch/view/81a0bbbe
  1. function random_readable_pwd($length=10){
  2.  
  3.     // the wordlist from which the password gets generated
  4.     // (change them as you like)
  5.     $words = 'dog,cat,sheep,sun,sky,red,ball,happy,ice,';
  6.     $words .= 'green,blue,music,movies,radio,green,turbo,';
  7.     $words .= 'mouse,computer,paper,water,fire,storm,chicken,';
  8.     $words .= 'boot,freedom,white,nice,player,small,eyes,';
  9.     $words .= 'path,kid,box,black,flower,ping,pong,smile,';
  10.     $words .= 'coffee,colors,rainbow,plus,king,tv,ring';
  11.  
  12.     // Split by ",":
  13.     $words = explode(',', $words);
  14.     if (count($words) == 0){ die('Wordlist is empty!'); }
  15.  
  16.     // Add words while password is smaller than the given length
  17.     $pwd = '';
  18.     while (strlen($pwd) < $length){
  19.         $r = mt_rand(0, count($words)-1);
  20.         $pwd .= $words[$r];
  21.     }
  22.  
  23.     // append a number at the end if length > 2 and
  24.     // reduce the password size to $length
  25.     $num = mt_rand(1, 99);
  26.     if ($length > 2){
  27.         $pwd = substr($pwd,0,$length-strlen($num)).$num;
  28.     } else {
  29.         $pwd = substr($pwd, 0, $length);
  30.     }
  31.  
  32.     return $pwd;
  33.  
  34. }
  35.  
  36. ttesting difff
]]>