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

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

Untitled - Stikked
From Bitty Peccary, 11 Years ago, written in JavaScript.
Embed
  1. db = window.sqlitePlugin.openDatabase({name: "DB"});
  2.         db.transaction(function(tx)
  3.         {
  4.             // Cria a Tabela "tabela_testes"
  5.             tx.executeSql('CREATE TABLE IF NOT EXISTS funcionarios (id integer primary key, nome text, matricula text, cargo text, setor text, email text, ramal text)');
  6.             // Adiciona um elemento a tabela
  7. //            tx.executeSql("INSERT INTO funcionarios (nome, matricula, cargo, setor, email, ramal) VALUES (?,?,?,?,?,?)", ["Fulano de Tal", "077", "COORDENADOR", "GIC", "email@meuemail.com", "69448"]);
  8.             // Faz uma busca na tabela
  9.             tx.executeSql("SELECT * FROM funcionarios WHERE id="+idFuncionario+";", [], function(tx, res)
  10.             {
  11. //                alert("Quantidade Resultados: " + res.rows.length);
  12.                 for (var i = 0;i<res.rows.length;i++)
  13.                 {
  14. //                    alert("Quantidade Resultados: " + res.rows.item(i).nome);
  15. //                    lista.html("<li><h3>" + res.rows.item(i).nome + "</h3></li>");
  16.                     lista.html("<p><strong>"+res.rows.item(i).nome+"</strong><br/>"+res.rows.item(i).cargo+"<br/>"+res.rows.item(i).setor+"<br/>"+res.rows.item(i).ramal+"<br/>"+res.rows.item(i).email+"</p>");
  17.                    
  18.                     //hashtagsmounted += "<li class='hashtagItem ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-last-child ui-btn-up-b' data-corners='false' data-shadow='false' data-iconshadow='true' data-wrapperels='div' data-icon='false' data-iconpos='right' data-theme='b' onclick='findPhotos($(this));' data-hashtag-id='" + res.rows.item(i).id + "' data-hashtag='" +res.rows.item(i).hashtag + "'><div class='ui-btn-inner ui-li'><div class='ui-btn-text'><a href='#' data-ajax='false' class='ui-link-inherit'><i class='icon-picture'></i> " + res.rows.item(i).hashtag + "</a></div></div></li>";
  19.                     //hashtagsmounted += '<li onclick="clickFuncionario('+res.rows.item(i).id+');" data-filtertext="'+res.rows.item(i).nome+'" class="ui-last-child"><a href="#two" class="pessoaBtn ui-btn ui-btn-icon-right ui-icon-carat-r">'+res.rows.item(i).nome+'<br/>'+res.rows.item(i).cargo+' - '+res.rows.item(i).setor+'</a></li>';
  20.                     //listaInicial.html(hashtagsmounted);
  21.                 }
  22.                 //alert(hashtagsmounted);
  23. //                $("#hashtagList").html("");
  24. //                $("#hashtagList").html(hashtagsmounted);
  25.             });
  26.            
  27.         });