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			
		
	
 ' Gambas module file
Export
Private Enum VENDOR_INTEL = 0,      '' Intel CPU */
             VENDOR_AMD = 1,        '' AMD CPU */
             VENDOR_CYRIX = 2,      '' Cyrix CPU */
             VENDOR_NEXGEN = 3,     '' NexGen CPU */
             VENDOR_TRANSMETA = 4,  '' Transmeta CPU */
             VENDOR_UMC = 5,        '' x86 CPU by UMC */
             VENDOR_CENTAUR = 6,    '' x86 CPU by IDT */
             VENDOR_RISE = 7,       '' x86 CPU by Rise Technology */
             VENDOR_SIS = 8,        '' x86 CPU by SiS */
             VENDOR_NSC = 9,        '' x86 CPU by National Semiconductor */
             VENDOR_HYGON = 10      '' Hygon CPU */
Private Enum DB_CPU_MODEL = 0,
             DB_CPU_EXT_MODEL = 1,
             DB_CPU_EXT_FAMILY = 2,
             DB_CPU_PROCESS = 3
             
''Model | E. Model |E. Family |Process
Private technology_intel As String[][] = [
    ["0", "0", "-1", "180"],    '' P4 Willamette
    ["1", "1", "6", "350"],     '' Pentium Pro
    ["1", "1", "15", "180"],    '' P4 Willamette
    ["2", "2", "-1", "130"],    '' P4 Northwood / Gallatin
    ["3", "3", "5", "350"],     '' PII Overdrive
    ["3", "3", "6", "350"],     '' PII Klamath
    ["3", "3", "15", "90"],     '' P4 Prescott
    ["4", "4", "-1", "90"],     '' P4 Prescott/Irwindale / PD Smithfield
    ["5", "5", "6", "250"],     '' PII Deschutes / Tonga / Xeon Drake / Celeron Covington
    ["5", "37", "-1", "32"],    '' Westmere
    ["5", "53", "-1", "32"],    '' Atom Cloverview
    ["5", "69", "-1", "22"],    '' Haswell
    ["5", "85", "-1", "14"],    '' Skylake (Xeon Scalable)
    ["6", "6", "6", "250"],     '' PII Dixon / Celeron Mendocino
    ["6", "6", "15", "65"],     '' P4 Cedar Mill / PD Presler
    ["6", "22", "-1", "65"],    '' C2 Conroe-L
    ["6", "54", "-1", "32"],    '' Atom Cedarview
    ["6", "70", "-1", "22"],    '' Haswell (Crystalwell"," L4 cache)
    ["7", "7", "-1", "250"],    '' PIII Katmai
    ["7", "23", "-1", "45"],    '' C2 Wolfdale / Yorkfield / Penryn
    ["7", "55", "-1", "22"],    '' Atom Bay Trail
    ["7", "71", "-1", "14"],    '' Broadwell
    ["8", "0", "0", "180"],     '' PIII Coppermine-T
    ["8", "8", "-1", "180"],    '' PIII Coppermine
    ["9", "9", "-1", "130"],    '' Pentium M Banias
    ["10", "26", "-1", "45"],   '' Nehalem
    ["10", "30", "-1", "45"],   '' Nehalem
    ["10", "42", "-1", "32"],   '' Sandy Bridge
    ["10", "58", "-1", "22"],   '' Ivy Bridge
    ["11", "11", "-1", "130"],  '' PIII Tualatine
    ["12", "28", "-1", "45"],   '' Atom Diamondville / Pineview / Silverthorne
    ["12", "44", "-1", "32"],   '' Westmere
    ["12", "60", "-1", "22"],   '' Haswell
    ["12", "76", "-1", "14"],   '' Atom Cherry Trail
    ["13", "13", "-1", "90"],   '' Pentium M Dothan
    ["13", "45", "-1", "32"],   '' Sandy Bridge-E
    ["13", "61", "-1", "14"],   '' Broadwell-U
    ["14", "14", "-1", "65"],   '' Yonah (Core Solo)
    ["14", "30", "-1", "45"],   '' Nehalem (Lynnfield)
    ["14", "62", "-1", "22"],   '' Ivy Bridge-E
    ["14", "78", "-1", "14"],   '' Skylake
    ["14", "94", "-1", "14"],   '' Skylake
    ["14", "158", "-1", "14"],  '' Kaby Lake / Coffee Lake
    ["15", "15", "-1", "65"],   '' C2 Conroe / Allendale / Kentsfield / Merom
    ["15", "63", "-1", "22"],   '' Haswell-E
    ["15", "79", "-1", "14"],   '' Broadwell-E
    ["-1", "-1", "-1", "-1"]
]
Private technology_amd As String[][] = [
    ["0", "16", "21", "32"],   '' Bulldozer (Piledriver: Trinity)
    ["0", "48", "21", "28"],   '' Bulldozer (Steamroller: Kaveri)
    ["0", "112", "21", "28"],  '' Bulldozer (Excavator: Stoney Ridge)
    ["0", "-1", "22", "28"],   '' Jaguar (Kabini/Mullins)
    ["1", "-1", "18", "32"],   '' K10 (Llano)
    ["1", "-1", "20", "40"],   '' Bobcat (Brazos Zacate)
    ["1", " 1", "21", "32"],   '' Bulldozer
    ["1", "96", "21", "28"],   '' Bulldozer (Excavator: Carrizo)
    ["1", " 1", "23", "14"],   '' Zen (Naples/Whitehaven/Summit Ridge)
    ["1", "17", "23", "14"],   '' Zen (Raven Ridge)
    ["1", "113", "23", " 7"],  '' Zen 2 (Rome/Matisse)
    ["2", "-1", "16", "65"],   '' K10 (Kuma/Agena)
    ["2", "-1", "20", "40"],   '' Bobcat (Brazos Desna/Ontario)
    ["2", "-1", "21", "32"],   '' Bulldozer (Piledriver: Vishera)
    ["3", "-1", "15", "90"],   '' K8 (Toledo)
    ["3", "-1", "21", "32"],   '' Bulldozer (Piledriver: Richland)
    ["4", "-1", "15", "90"],   '' K8 (Lancaster)
    ["4", "-1", "16", "45"],   '' K10 (Deneb/Heka)
    ["5", "-1", "16", "45"],   '' K10 (Propus)
    ["5", "-1", "21", "28"],   '' Bulldozer (Excavator: Bristol Ridge)
    ["6", "-1", "16", "45"],   '' K10 (Champlain/Sargas/Regor)
    ["8", "-1", " 6", "130"],  '' K7 (Thoroughbred/Applebred)
    ["8", "-1", "15", "65"],   '' K8 (Tyler)
    ["8", "-1", "21", "28"],   '' Bulldozer (Steamroller: Godavari)
    ["8", " 8", "23", "12"],   '' Zen+ (Colfax/Pinnacle Ridge)
    ["8", "24", "23", "12"],   '' Zen+ (Picasso)
    ["9", "-1", "16", "45"],   '' Magny-Cours (Opteron)
    ["10", "-1", " 6", "130"], '' K7 (Barton)
    ["10", "-1", "16", "45"],  '' K10 (Thuban)
    ["11", "-1", "15", "65"],  '' K8 (Brisbane)
    ["12", "-1", "15", "90"],  '' K8 (Venice/Sonora)
    ["15", "79", "15", "90"],  '' K8 (Manila)
    ["15", "127", "15", "65"], '' K8 (Sparta)
    ["-1", "-1", "-1", "-1"]
]
Public Sub _get(model As String, ext_model As String, ext_family As String, cpu_vendor As Byte) As String
  Dim technology_count As Byte
  Dim technology_db As New String[][]
  
  Select cpu_vendor
    Case VENDOR_INTEL
      technology_db = technology_intel
      Goto RECOGNIZE
    Case VENDOR_AMD
      technology_db = technology_amd
      Goto RECOGNIZE
    Case Else
      Return
  End Select
  
  RECOGNIZE:
  For technology_count = 0 To technology_db.Max
    'Print technology_intel[j][0], technology_intel[j][1], technology_intel[j][2], technology_intel[j][3]
    If technology_db[technology_count][DB_CPU_MODEL] Like model Or technology_db[technology_count][DB_CPU_MODEL] Like "-1" Then
      
      If technology_db[technology_count][DB_CPU_EXT_MODEL] Like ext_model Or technology_db[technology_count][DB_CPU_EXT_MODEL] Like "-1" Then
        
        If technology_db[technology_count][DB_CPU_EXT_FAMILY] Like ext_family Or technology_db[technology_count][DB_CPU_EXT_FAMILY] Like "-1" Then
          
          If technology_db[technology_count][DB_CPU_PROCESS] Not Like "-1" Then
            Finally
            Return technology_db[technology_count][DB_CPU_PROCESS]
          Endif
          
        Endif
        
      Endif
    
    Endif
    
  Next
  
  Catch
  Return ""
End