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 Bistre Gibbon, 6 Years ago, written in JavaScript.
Embed
  1. "use strict";
  2. const { tools } = require("@fiyuu/common");
  3.  
  4. class QapelService{
  5.    
  6.     async matchQapelCustomer(
  7.         customerId,
  8.         qapelId,
  9.         trackerToken,
  10.         trackerName,
  11.         network,
  12.         campaign,
  13.         adgroup,
  14.         creative,
  15.         clickLabel,
  16.         adid
  17.     ){
  18.         // const customer = await this.db.getCustomerQapel({customerId});
  19.         // if(customer == undefined){
  20.         //     //ok
  21.         // }else{
  22.         //     this.log.error('customer already has a qapelId')
  23.  
  24.         //     throw new Error("customer::qapel-already-assigned");
  25.         // }
  26.  
  27.         const customerQapel = {
  28.             id:customerId,
  29.             qapelId,
  30.             trackerToken,
  31.             trackerName,
  32.             network,
  33.             campaign,
  34.             adgroup,
  35.             creative,
  36.             clickLabel,
  37.             adid
  38.         }
  39.  
  40.         this.log.trace('Customer Qapel Post: %j',JSON.stringify(customerQapel))
  41.  
  42.         await this.db.createCustomerQapel(customerQapel)
  43.        
  44.         return customerQapel
  45.  
  46.     }
  47.  
  48.     async checkQapelCustomer(
  49.         customerId
  50.     ){
  51.         const customer = await this.db.getCustomerQapel({customerId});
  52.         if(customer != undefined){
  53.             //ok
  54.         }else{
  55.  
  56.             throw new Error("customer::no-qapel-match");
  57.         }
  58.        
  59.         //return {customerId, qapelId}
  60.  
  61.     }
  62.  
  63.    
  64.  
  65.    
  66. }
  67. QapelService.prototype.log = null;
  68. QapelService.prototype.db = null;
  69.  
  70. module.exports = {
  71.     QapelService
  72. }