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: 624
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/download.php

Line Number: 2

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/download.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: 625
Function: view

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/download.php

Line Number: 3

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/download.php
Line: 3
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: 625
Function: view

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

//nave amigo var nave2 = { x: 700,//posicion en x del inicio y: 50,//posicion en y del inicio width: 50,//anchura height: 50,//altura de la nave contador: 0 }; function dibujarNave2() { ctx.drawImage(imgEnemigo, nave2.x, nave2.y, nave2.width, nave2.height); } var disparos2 = []; function dibujarDisparos2(){ for(var i in disparos2){ var disparo2 = disparos2[i]; ctx.drawImage(imgDisparoE, disparo2.x,disparo2.y,disparo2.width,disparo2.height); } } function moverDisparos2(){ for(var i in disparos2){ var disparo2 = disparos2[i]; disparo2.y += 4;//velocidad disparo disparo2.contador++; } disparos2 = disparos2.filter(function(disparo2){ return disparo2.y > 0; }); function fire2(){ //Reproducir sonido y pararlo sounddisparo.pause(); //sounddisparo.currentTime = 0; sounddisparo.play(); disparos2.push({ x: nave2.x - -10, y: nave2.y - -10, width: 16, height: 28 }); } //-------------------------------------------Mover segunda nave------------------------------ //movimiento a a la izquierda, a if (teclado[65] ) { nave2.x -= 15; if(nave2.x <0) { nave2.x = 0; } } //movimiento a a la derecha, d if (teclado[68] ) { var limitex = canvas.width - nave2.width; nave2.x += 15; if(nave2.x > limitex) { nave2.x = limitex; } } if (teclado[53] ) { //disparos, 5 if(!teclado.fire2){ fire2(); teclado.fire2 = true; } } else teclado.fire2 = false; if(nave2.estado == 'hit'){ nave2.contador++; if(nave2.contador >= 20){ nave2.contador = 0; nave2.estado = 'muerto'; juego.estado = 'perdido'; //Reproducir sonido soundGameOver.play(); textoRespuesta.titulo= '¡Game Over, el submarino gano!'; textoRespuesta.subtitulo = 'Presiona R para volver a intentarlo.'; textoRespuesta.contador = 0; } } //-----------------------------------------------------------------