From 728f292607bbbef470e8ec76cbbeeda86cdef65a Mon Sep 17 00:00:00 2001 From: nestict Date: Sat, 24 May 2025 10:00:25 +0200 Subject: [PATCH] Upload files to "/" Signed-off-by: nestict --- LICENSE | 339 ++++++++++++++++++++++++++++++++++ error_log | 517 ++++++++++++++++++++++++++++++++++++++++++++++++++++ favicon.ico | Bin 0 -> 2417 bytes index.php | 40 ++++ init.php | 340 ++++++++++++++++++++++++++++++++++ 5 files changed, 1236 insertions(+) create mode 100644 LICENSE create mode 100644 error_log create mode 100644 favicon.ico create mode 100644 index.php create mode 100644 init.php diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..23cb790 --- /dev/null +++ b/LICENSE @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + {description} + Copyright (C) {year} {fullname} + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + {signature of Ty Coon}, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/error_log b/error_log new file mode 100644 index 0000000..e8cbd97 --- /dev/null +++ b/error_log @@ -0,0 +1,517 @@ +[29-Jun-2024 22:57:48 Africa/Nairobi] Error: Missing username in save_data_usage() +[29-Jun-2024 22:57:50 Africa/Nairobi] Error: Missing username in save_data_usage() +[29-Jun-2024 23:00:26 Africa/Nairobi] Error: Missing username in save_data_usage() +[29-Jun-2024 23:00:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 00:50:37 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 00:50:39 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 00:52:40 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 00:52:41 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 01:03:24 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 01:03:27 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 07:16:23 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 07:16:25 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 07:27:26 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 07:27:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 07:27:43 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 07:27:45 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:02:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:02:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:13:51 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:13:53 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:19:04 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:19:06 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:20:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:20:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:22:37 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:22:39 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:22:52 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:22:54 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:26:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 15:26:32 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 16:04:11 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 16:04:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 16:05:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 16:05:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 18:21:34 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 18:21:39 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 18:22:41 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 18:22:44 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:03:27 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:03:30 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:03:41 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:03:43 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:04:57 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:04:59 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:12:24 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:12:27 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:16:46 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:16:49 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:22:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:22:32 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:23:15 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:23:17 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:25:02 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:25:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:25:59 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:26:01 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:26:26 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:26:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:27:34 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:27:38 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:30:35 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:30:38 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:34:23 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:34:25 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:49:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 19:49:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 20:03:52 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 20:03:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 20:09:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 20:09:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 20:11:26 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 20:11:32 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 21:50:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 21:51:00 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 22:02:34 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 22:02:36 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 22:22:01 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 22:22:03 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 22:46:09 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 22:46:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 23:00:00 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 23:00:02 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 23:00:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 23:00:17 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 23:01:25 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 23:01:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 23:21:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[30-Jun-2024 23:21:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 00:08:34 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 00:08:37 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 00:15:39 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 00:15:41 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 00:33:34 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 00:33:36 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 00:34:09 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 00:34:11 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 01:53:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 01:53:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:00:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:00:57 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:02:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:02:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:03:08 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:03:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:08:01 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:08:03 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:10:38 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:10:40 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:12:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:12:09 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:15:47 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 02:15:49 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 10:13:13 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 10:13:15 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 10:13:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 10:13:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 10:52:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 10:52:57 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 10:54:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 10:54:30 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:04:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:04:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:04:40 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:04:42 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:04:51 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:04:53 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:19:30 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:19:32 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:19:41 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 11:19:44 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 14:28:09 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 14:28:11 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 14:28:21 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 14:28:24 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 14:47:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 14:47:08 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 15:14:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 15:14:18 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 15:14:51 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 15:14:54 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 15:15:04 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 15:15:06 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 15:16:08 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 15:16:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 17:59:49 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 17:59:51 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 19:43:38 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 19:43:41 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 19:53:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 19:53:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 19:55:04 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 19:55:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 19:55:19 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 19:55:22 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 20:33:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 20:33:08 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:27:41 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:27:43 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:41:21 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:41:23 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:45:04 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:45:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:51:11 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:51:13 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:54:02 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:54:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:57:41 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:57:43 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:58:39 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:58:42 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 22:55:47 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 22:55:50 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 22:56:11 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 22:56:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:07:21 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:07:23 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:09:36 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:09:39 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:30:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:30:09 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:31:47 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:31:49 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:31:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:32:00 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:34:03 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:34:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:37:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 23:37:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 21:05:49 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 21:06:08 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[02-Jul-2024 00:44:15 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 00:44:18 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 00:49:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 00:49:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[01-Jul-2024 22:45:41 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 22:46:30 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 23:01:30 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 23:02:27 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 23:04:18 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 23:05:19 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 23:22:31 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 23:24:35 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 23:25:45 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 23:29:56 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[01-Jul-2024 23:31:32 UTC] Error saving payment gateway record: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pg_url_payment' cannot be null +[02-Jul-2024 02:34:57 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 02:34:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 03:41:00 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 03:41:01 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 04:30:26 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 04:30:27 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 04:32:15 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 04:32:17 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 04:34:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 04:34:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:15:36 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:15:39 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:20:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:20:17 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:21:00 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:21:03 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:21:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:21:15 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:24:42 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:24:45 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:24:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 16:24:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 17:39:17 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 17:39:19 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 17:44:17 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 17:44:19 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 17:45:08 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 17:45:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 19:39:13 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 19:39:15 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 19:48:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 19:48:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 20:36:56 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 20:37:00 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:07:11 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:07:13 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:07:23 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:07:25 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:18:52 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:18:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:20:02 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:20:04 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:50:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 21:50:19 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 22:13:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 22:13:33 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 22:13:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 22:13:59 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 22:14:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 22:14:19 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 22:30:36 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 22:30:39 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 23:25:22 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 23:25:25 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 23:26:59 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 23:27:03 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 23:47:47 Africa/Nairobi] Error: Missing username in save_data_usage() +[02-Jul-2024 23:47:50 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 00:21:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 00:21:30 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 00:22:06 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 00:22:08 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 00:23:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 00:23:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 00:27:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 00:27:30 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 12:39:21 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 12:39:23 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 12:41:53 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 12:41:56 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 13:56:52 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 13:56:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:14:33 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:14:36 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:16:52 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:16:54 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:17:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:17:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:17:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:18:00 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:18:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:18:15 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:29:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 14:29:09 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 17:12:30 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 17:12:32 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 20:52:49 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 20:52:51 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:00:31 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:00:36 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:40:25 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:40:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:46:13 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:46:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:46:26 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:46:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:47:32 Africa/Nairobi] Error: Missing username in save_data_usage() +[03-Jul-2024 21:47:34 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 01:05:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 01:05:31 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 01:18:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 01:18:18 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 01:18:26 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 01:18:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 10:18:35 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 10:18:38 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 10:19:02 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 10:19:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 13:16:07 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 13:16:09 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 13:29:49 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 13:29:51 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 14:32:48 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 14:32:51 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 14:43:45 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 14:43:48 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 14:50:40 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 14:50:42 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 15:04:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 15:04:19 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 15:04:56 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 15:05:01 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 15:05:43 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 15:05:46 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 15:07:18 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 15:07:21 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 16:30:11 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 16:30:15 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 16:36:35 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 16:36:37 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 18:30:03 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 18:30:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 18:36:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 18:36:18 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 19:32:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 19:32:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 20:24:36 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 20:24:39 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 20:24:57 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 20:25:00 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 20:27:22 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 20:27:24 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 21:15:38 Africa/Nairobi] Error: Missing username in save_data_usage() +[04-Jul-2024 21:15:41 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 01:33:11 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 01:33:13 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 05:40:00 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 05:40:01 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 05:40:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 05:40:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 05:42:13 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 05:42:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:06:53 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:06:54 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:11:03 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:11:04 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:12:17 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:12:18 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:13:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:13:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:17:25 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:17:27 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 03:19:03 UTC] Alloworigins called +[05-Jul-2024 03:19:03 UTC] Type parameter: verify +[05-Jul-2024 03:19:03 UTC] VerifyHotspot called +[05-Jul-2024 03:19:03 UTC] Invalid request method for verify +[05-Jul-2024 03:19:10 UTC] Alloworigins called +[05-Jul-2024 03:19:10 UTC] Type parameter: verify +[05-Jul-2024 03:19:10 UTC] VerifyHotspot called +[05-Jul-2024 03:19:10 UTC] Invalid request method for verify +[05-Jul-2024 03:19:35 UTC] Alloworigins called +[05-Jul-2024 03:19:35 UTC] Type parameter missing +[05-Jul-2024 03:24:53 UTC] Alloworigins called +[05-Jul-2024 03:24:53 UTC] Type parameter: grant +[05-Jul-2024 03:25:04 UTC] Alloworigins called +[05-Jul-2024 03:25:04 UTC] Type parameter missing +[05-Jul-2024 03:25:21 UTC] Alloworigins called +[05-Jul-2024 03:25:21 UTC] Type parameter missing +[05-Jul-2024 03:26:35 UTC] Alloworigins called +[05-Jul-2024 03:26:35 UTC] Type parameter missing +[05-Jul-2024 06:27:21 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:27:22 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 03:27:25 UTC] Type parameter: verify +[05-Jul-2024 03:27:25 UTC] Invalid request method for verify +[05-Jul-2024 06:27:42 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:27:43 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 03:27:44 UTC] Type parameter: verify +[05-Jul-2024 03:27:44 UTC] Invalid request method for verify +[05-Jul-2024 06:29:09 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:29:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 03:29:13 UTC] Type parameter: verify +[05-Jul-2024 03:30:59 UTC] Type parameter: verify +[05-Jul-2024 06:36:27 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:36:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:44:52 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:44:54 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:55:09 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:55:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:55:35 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 06:55:36 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 05:06:23 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:06:28 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:06:33 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:06:38 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:06:43 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:06:48 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:06:53 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:06:58 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:07:03 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:19:56 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:20:01 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:20:06 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:20:11 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:20:16 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:20:21 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:20:26 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:20:31 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:20:36 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:21:30 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:21:35 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:21:40 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:21:45 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:21:50 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:21:55 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:22:00 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:22:05 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:22:10 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:29:22 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:29:27 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:29:32 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:29:37 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:29:42 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:29:47 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:29:52 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:30:10 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:30:14 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:30:19 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:30:24 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:30:29 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:30:35 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:30:40 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:30:45 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:30:50 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:34:02 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:34:07 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:34:12 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:34:17 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:34:22 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:34:27 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:34:32 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:34:37 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 05:34:42 UTC] Status is 2 and mpesacode is not empty +[05-Jul-2024 09:09:06 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 09:09:08 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 16:36:52 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 16:36:54 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 18:32:47 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 18:32:49 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 20:29:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 20:29:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 20:32:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 20:32:58 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 21:50:40 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 21:50:43 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 21:57:19 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 21:57:23 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 23:18:31 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 23:18:33 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 23:20:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 23:20:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 23:21:11 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 23:21:15 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 23:59:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[05-Jul-2024 23:59:18 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 00:00:13 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 00:00:17 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 01:18:26 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 01:18:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 04:32:26 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 04:32:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 14:03:31 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 14:03:33 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 16:00:48 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 16:00:50 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 16:05:23 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 16:05:25 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 16:38:35 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 16:38:37 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 18:01:55 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 18:01:57 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 18:06:13 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 18:06:16 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 18:39:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 18:39:29 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:11:01 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:11:03 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:11:30 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:11:32 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:26:34 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:26:37 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:27:45 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:27:49 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:30:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:30:14 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:36:10 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 19:36:12 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 20:09:02 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 20:09:05 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 20:35:18 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 20:35:20 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 20:52:28 Africa/Nairobi] Error: Missing username in save_data_usage() +[06-Jul-2024 20:52:32 Africa/Nairobi] Error: Missing username in save_data_usage() diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..80e2ed8ea547bba7607534117ad7788921a427a0 GIT binary patch literal 2417 zcmV-%36A!OP)nkHF=_KVncREN z+3WLR?S0O^Gk5MJWD@8a&fI&?*=Oyw)?WKtKO1Kjr6lR<{0}{VUQUORpARy>3lTe7&W)?4BJ}G?Zxxf78k)u-;c+UqO zsN&9jk6~fYml(DUf)c7pUdaOqkPz`{kp3e-@02Q8bFBtfKm=d_VE#S@2+gHo)f|7~ zCi}yqzdv}O1%N8QU`rqWu5G>Z%T=f$3Lq3yOKD-k?KElieysG$OtJpeX<l`I0FTGD za{j;bIxtm5rL>^Qse(J-MEnq1ULE&8(Fk_D0V0H8F+zuEPFfwVnDlF!lw?sYO~2Nnn4F;mZgkp@x107eJklxnLHKm>${XnFuI*ZX`QxsRg z7}2)NMI@F&x`ex)f%f+`%wB+9KRI;QaQm%$Iai~tRjC3JD&(Sg9%wKbx8tT+x^Vir zQ=j|b;q`cJsn1>5%K8bdw?RYI8a=TzL?Z#K#}mmg%|yC_Wa_{TRscY!B#VNlOG5MOLU03jyc+6E z;RSp_S6LEP)^2w`>4p@Eb}p~7CYy+7Rpy_G#nP8|uSA>KrAV)wUURYBQ%dI2q+};V zU#E7($cA?71Nqe2v3Mq%7T0qm_FpBMa#9T0z-mNwxgQ}D*P7~J^W@Ji)F*N4k!-Yy zMcZD|yq{8dWY-&jH>+&3SD=$((&}X~z5yeXU~5%O9gGf*JU~{q5w|NRMh1yDWy3Wfw_bpt8)ZSE2 zbxZ-O0$O$@y2wTJh}ws-tIjK~k%R*AW@gH2bH^z+xq5I(HE}NPQ}we-R_0E{4Wjw^ zfllp2BGgKlvsbJG0w&aGDcX-ksVCtf!G3dS^_dq!- z*WN_>%!A+8CM-UjQ*N&I-mc41v=#-c53Q!T3ulJ^Pe1T2J#le)+u}m7&>BdhHA5Tc zU}h?W^=RU(3=KpLZQJUl3q!0_ckX=g6WeYBF zO{!2pE$dmI$xo3CX0zL(QJ{dL1))`fIbElW=*}Jt9aMBcqF#1pO*=tcA4M@bzJNIVo<5Tra&RYH~vSo zF8rFjUrJ0}UjYCne&A8o^p4F;{+v?kuJ7di9*BXGkNA9|AYA}Izuf}|&Kw;@Q&43uebXnWNVnh>L zh%H;)9DAzf(FY&<%7+0IeW7E2{Q9|1eev=8UOMr{T_Y^rJCrRom8dLQ-Ck@se*M%e z1?u+b8FKrhL~S7sj0o`5Dmvs9-Mw5|2nfwRScw3kMK!1qm68mC5kfOQU+L@5-?n@7 j*QbB*g_*{DQ_=qcFYFQNNSk7%00000NkvXXu0mjf@A7@0 literal 0 HcmV?d00001 diff --git a/index.php b/index.php new file mode 100644 index 0000000..c3585b7 --- /dev/null +++ b/index.php @@ -0,0 +1,40 @@ +find_many(); +foreach ($result as $value) { + $config[$value['setting']] = $value['value']; +} +$_c = $config; +if (empty($http_proxy) && !empty($config['http_proxy'])) { + $http_proxy = $config['http_proxy']; + if (empty($http_proxyauth) && !empty($config['http_proxyauth'])) { + $http_proxyauth = $config['http_proxyauth']; + } +} +date_default_timezone_set($config['timezone']); + +if ((!empty($radius_user) && $config['radius_enable']) || _post('radius_enable')) { + if(!empty($radius_password)){ + $radius_pass = $radius_password; + } + ORM::configure("mysql:host=$radius_host;dbname=$radius_name", null, 'radius'); + ORM::configure('username', $radius_user, 'radius'); + ORM::configure('password', $radius_pass, 'radius'); + ORM::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'), 'radius'); + ORM::configure('return_result_sets', true, 'radius'); +} + + +if (empty($config['language'])) { + $config['language'] = 'english'; +} +$lan_file = $root_path . File::pathFixer('system/lan/' . $config['language'] . '.json'); +if (file_exists($lan_file)) { + $_L = json_decode(file_get_contents($lan_file), true); + $_SESSION['Lang'] = $_L; +} else { + $_L['author'] = 'Auto Generated by iBNuX Script'; + $_SESSION['Lang'] = $_L; + file_put_contents($lan_file, json_encode($_L)); +} + + +function safedata($value) +{ + $value = trim($value); + return $value; +} + +function _post($param, $defvalue = '') +{ + if (!isset($_POST[$param])) { + return $defvalue; + } else { + return safedata($_POST[$param]); + } +} + +function _get($param, $defvalue = '') +{ + if (!isset($_GET[$param])) { + return $defvalue; + } else { + return safedata($_GET[$param]); + } +} + +function _req($param, $defvalue = '') +{ + if (!isset($_REQUEST[$param])) { + return $defvalue; + } else { + return safedata($_REQUEST[$param]); + } +} + + +function _auth($login = true) +{ + if (User::getID()) { + return true; + } else { + if ($login) { + r2(U . 'login'); + } else { + return false; + } + } +} + +function _admin($login = true) +{ + if (Admin::getID()) { + return true; + } else { + if ($login) { + r2(U . 'login'); + } else { + return false; + } + } +} + + +function _log($description, $type = '', $userid = '0') +{ + $d = ORM::for_table('tbl_logs')->create(); + $d->date = date('Y-m-d H:i:s'); + $d->type = $type; + $d->description = $description; + $d->userid = $userid; + if (!empty($_SERVER['HTTP_CF_CONNECTING_IP'])) //to check ip is pass from cloudflare tunnel + { + $d->ip = $_SERVER['HTTP_CF_CONNECTING_IP']; + } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy + { + $d->ip = $_SERVER['HTTP_X_FORWARDED_FOR']; + } elseif (!empty($_SERVER['HTTP_CLIENT_IP'])) //to check ip from share internet + { + $d->ip = $_SERVER['HTTP_CLIENT_IP']; + } else { + $d->ip = $_SERVER["REMOTE_ADDR"]; + } + $d->save(); +} + +function Lang($key) +{ + return Lang::T($key); +} + +function alphanumeric($str, $tambahan = "") +{ + return Text::alphanumeric($str, $tambahan); +} + +function showResult($success, $message = '', $result = [], $meta = []) +{ + header("Content-Type: Application/json"); + $json = json_encode(['success' => $success, 'message' => $message, 'result' => $result, 'meta' => $meta]); + echo $json; + die(); +} + + +function generateUniqueNumericVouchers($totalVouchers, $length = 8) +{ + // Define characters allowed in the voucher code + $characters = '0123456789'; + $charactersLength = strlen($characters); + $vouchers = array(); + + // Attempt to generate unique voucher codes + for ($j = 0; $j < $totalVouchers; $j++) { + do { + $voucherCode = ''; + // Generate the voucher code + for ($i = 0; $i < $length; $i++) { + $voucherCode .= $characters[rand(0, $charactersLength - 1)]; + } + // Check if the generated voucher code already exists in the array + $isUnique = !in_array($voucherCode, $vouchers); + } while (!$isUnique); + + $vouchers[] = $voucherCode; + } + + return $vouchers; +} + +function sendTelegram($txt) +{ + Message::sendTelegram($txt); +} + +function sendSMS($phone, $txt) +{ + Message::sendSMS($phone, $txt); +} + +function sendWhatsapp($phone, $txt) +{ + Message::sendWhatsapp($phone, $txt); +} + +function r2($to, $ntype = 'e', $msg = '') +{ + global $isApi; + if ($isApi) { + showResult( + ($ntype == 's') ? true : false, + $msg + ); + } + if ($msg == '') { + header("location: $to"); + exit; + } + $_SESSION['ntype'] = $ntype; + $_SESSION['notify'] = $msg; + header("location: $to"); + exit; +} + +function _alert($text, $type = 'success', $url = "home", $time = 3) +{ + global $ui, $isApi; + if ($isApi) { + showResult( + ($type == 'success') ? true : false, + $text + ); + } + if (!isset($ui)) return; + if (strlen($url) > 4) { + if (substr($url, 0, 4) != "http") { + $url = U . $url; + } + } else { + $url = U . $url; + } + $ui->assign('text', $text); + $ui->assign('type', $type); + $ui->assign('time', $time); + $ui->assign('url', $url); + $ui->display('alert.tpl'); + die(); +} + + +if (!isset($api_secret)) { + $api_secret = $db_password; +} + +function displayMaintenanceMessage(): void +{ + global $config, $ui; + $date = $config['maintenance_date']; + if ($date){ + $ui->assign('date', $date); + } + http_response_code(503); + $ui->assign('companyName', $config['CompanyName']); + $ui->display('maintenance.tpl'); + die(); +}