nightflyza / Ubilling

Ubilling is opensource ISP billing system based on stargazer
https://ubilling.net.ua
GNU General Public License v2.0
134 stars 105 forks source link

ubrouting_checkGet_Post_update #830

Closed bobr-kun closed 8 months ago

bobr-kun commented 8 months ago

UbRouting:    Added ability for "checkGet()" and "checkPost()" methods to return "true" when the very first existent GET/POST param encountered. Respecting the $ignoreEmpty parameter though.

bobr-kun commented 8 months ago

Wanned to make that a pretty long time ago. But this construction:

$getUserData = !(ubRouting::checkGet('payments')      or ubRouting::checkGet('announcements')      or ubRouting::checkGet('tickets')      or ubRouting::checkGet('opayz')      or ubRouting::checkGet('agentassigned')      or ubRouting::checkGet('tariffvservices')      or ubRouting::checkGet('feecharges')      or ubRouting::checkGet('ticketcreate') );

got me frustrated finally and gave some motivation

nightflyza commented 8 months ago

Поклеєно як є. Потім може перепишу, а може й ніт ніт :)