Severity: 8192
Message: Return type of CI_Session_database_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 129
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 280
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 151
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 208
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 297
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 335
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 282
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 294
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 304
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 314
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 315
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 316
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 317
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 375
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 110
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: Warning
Message: session_start(): Session cannot be started after headers have already been sent
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 98
Function: library
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: 8192
Message: stristr(): Passing null to parameter #1 ($haystack) of type string is deprecated
Filename: controllers/Main.php
Line Number: 269
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 269
Function: stristr
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: 8192
Message: stristr(): Passing null to parameter #1 ($haystack) of type string is deprecated
Filename: controllers/Main.php
Line Number: 297
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 297
Function: stristr
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Severity: 8192
Message: stristr(): Passing null to parameter #1 ($haystack) of type string is deprecated
Filename: controllers/Main.php
Line Number: 321
Backtrace:
File: /var/www/clients/client2/web23/web/paste/application/controllers/Main.php
Line: 321
Function: stristr
File: /var/www/clients/client2/web23/web/paste/application/controllers/Api.php
Line: 23
Function: __construct
File: /var/www/clients/client2/web23/web/paste/index.php
Line: 315
Function: require_once
Create pastes from the commandline
https://mlx.su/paste/api
https://mlx.su/paste/api/paste/[pasteid]
https://mlx.su/paste/api/random
https://mlx.su/paste/api/recent
https://mlx.su/paste/api/trending
https://mlx.su/paste/api/langs
https://mlx.su/paste/api/create
text=[your paste text]
The paste content. Required.
title=[title]
Title for the paste.
name=[name]
The author's name.
private=1
Make paste private.
lang=[language]
Use alternative syntax highlighting.
Possible values: text, html5, css, javascript, php, python, ruby, lua, bash, erlang, go, c, cpp, diff, latex, sql, xml, 0, 4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, aimms, algol68, apache, applescript, apt_sources, arm, asm, asymptote, asp, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, basic4gl, bbcode, bf, bibtex, blitzbasic, bnf, boo, c_loadrunner, c_mac, c_winapi, caddcl, cadlisp, cfdg, cfm, chaiscript, chapel, cil, clojure, cmake, cobol, coffeescript, cpp-winapi, csharp, cuesheet, d, dart, dcs, dcl, dcpu16, delphi, div, dos, dot, e, ecmascript, eiffel, email, epc, euphoria, ezt, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, icon, idl, ini, inno, intercal, io, ispfpanel, j, java, java5, jcl, jquery, klonec, klonecpp, kotlin, lb, ldif, lisp, llvm, locobasic, logcat, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nginx, nimrod, nsis, oberon2, objc, objeck, ocaml, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, pic16, pike, pixelbender, pli, plsql, postgresql, postscript, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pys60, q, qbasic, qml, racket, rails, rbs, rebol, reg, rexx, robots, rpmspec, rsplus, rust, sas, scala, scheme, scilab, scl, sdlbasic, smalltalk, smarty, spark, sparql, standardml, stonescript, systemverilog, tcl, teraterm, thinbasic, tsql, typoscript, unicon, uscript, upc, urbi, vala, vb, vbnet, vbscript, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xorg_conf, xpp, yaml, z80, zxbasic
expire=[minutes]
Set paste expiration.
reply=[pasteid]
Reply to existing paste.
On success, the API returns the paste URL: https://mlx.su/paste/view/[pasteid]
On error, the API returns the error message: Error: Missing paste text
curl -d text='this is my text' https://mlx.su/paste/api/create
Create a paste with the text 'this is my text'.
curl -d private=1 -d name=Herbert --data-urlencode text@/etc/passwd https://mlx.su/paste/api/create
Create a private paste with the author 'Herbert' and the contents of '/etc/passwd'.
curl -d lang=php --data-urlencode text@main.php https://mlx.su/paste/api/create
Create a paste with PHP syntax highlighting.
echo foo | curl --data-urlencode text@- https://mlx.su/paste/api/create
Create a paste based on standard output of a command.
curl https://mlx.su/paste/view/raw/[pasteid]
Display paste.