A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /var/www/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /var/www/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /var/www/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /var/www/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /var/www/stikked/htdocs/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /var/www/stikked/htdocs/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/stikked/htdocs/application/models/Pastes.php
Line: 517
Function: syntax

File: /var/www/stikked/htdocs/application/controllers/Main.php
Line: 693
Function: getPaste

File: /var/www/stikked/htdocs/index.php
Line: 315
Function: require_once

Untitled - Gajim's Pastbin

Untitled

From Bulky Human, 2 Years ago, written in Python, viewed 159 times. This paste will buy the farm in 1 Second.
URL https://paste.gajim.org/view/a8f0f143 Embed
Download Paste or View Raw
  1. #!/usr/bin/python
  2. import gi
  3. gi.require_version('Gtk', '3.0')
  4. from gi.repository import Gio, Gtk
  5.  
  6.  
  7. def network_status_changed(monitor, connected):
  8.     print(f"xD {connected}")
  9.  
  10.  
  11. network_monitor = Gio.NetworkMonitor.get_default()
  12. network_monitor.connect('network-changed', network_status_changed)
  13. print(network_monitor.get_connectivity())
  14.  
  15. Gtk.main()

Reply to "Untitled"

Here you can reply to the paste above