Jump to content

requinix

Administrators
  • Posts

    15,227
  • Joined

  • Last visited

  • Days Won

    427

Everything posted by requinix

  1. That would be a great description for someone who was already familiar with everything you were doing and was watching over your shoulder as you tried to tackle this problem. We are neither.
  2. You can't index on a function call. Having attempted this before (a very long time ago), bitwise isn't a good answer. It seems like the data is efficient and compact but that's not what you should be striving for with a database: what you need is a good representation of the data. Plus your PermissionEnum bits don't make sense. For example, they imply everything is public. Not that I'm exactly following along with what you're doing but everything public doesn't sound like what you want. What's probably easier than bits is a simple table of individual IDs and permissions.
  3. What's the table schemas? What query(ies) are you initially thinking of running, and/or what results are you trying to get out of them?
  4. The simplest answer would be to give the <p> an ID like the <span> does, then modify its contents...
  5. That code has a line which changes the text (according to the amount of time left). It also has a if block that does something when the countdown ends.
  6. Any change if you lower the sleeping time(s)?
  7. How fast does the output come? Is it 500 almost instantly or do they come in over the course of a minute? Is the script stopping "normally" because it thinks there's output or because it has some sort of problem (like a timeout)?
  8. If there's an error then it would help to know what that error says...
  9. Threads merged. We can try to help, but would need quite a bit more information. Like what forum software it's using. And assuming that comments were ever working, what's changed recently.
  10. * means any element. div.font only applies to DIVs with a "font" class while .font applies to any type of element with a "font" class. # is for IDs. These are fairly basic CSS questions...
  11. phpunit/phpunuit already provides phpunit/php-timer. Don't install it again. composer remove it, delete your vendor directory, and composer install.
  12. I gave you the wrong name. The Composer package is phpunit/php-timer, therefore the files would be in vendor/phpunit/php-timer. Do you have them?
  13. Try regenerating your autoload files, just in case that didn't happen properly. That class looks like it comes from sebastianbergmann/php-timer. Make sure you have that directory in your vendor/.
  14. Did you install it with Composer?
  15. You're not listening to me. I'm not asking you to describe what happens when you run either of these scripts. I'm asking you to actually run the URLs I'm telling you about and see what happens. Because the answer to your original question of "are there security problems here" is a very definite "yes", and I had hoped that the easiest way to tell you about it would be for you to watch it happen yourself.
  16. Not what I'm saying. What if you go to https://www.mysite.net/ota/delete_ESP_data.php?file=delete_ESP_data.php
  17. What's the name of your PHP file? Let's pretend it's get.php. What do you see if you go to /get.php?file=get.php
  18. Variables defined outside of functions are not available inside of functions. If you didn't see PHP give you a warning about that then you probably do not have your environment set up properly for PHP development. Find your php.ini and set display_errors = on error_reporting = -1 Then restart PHP and/or your web server and try your script again.
  19. Didn't notice this thread earlier. If you didn't see the answer elsewhere, there were problems with Elasticsearch staying alive: kernel kept killing it due to memory problems. Then a reindex or two. Everything seems fine and stable now.
  20. Looks fine to me. Is the problem your browser?
  21. Something about your assumption is wrong because both messages are definitely indicating that $table is not defined. You can test it really easily: define $table as an empty array before the loop and see what happens.
  22. I get you're trying to figure this out, but using "global" variables and "variables variables" (the name for this double-$ stuff) is not a good idea. They are bad features of PHP and you should do everything you can to avoid using them.
  23. I hate the ligatures. Especially the ≤ and triple ═══. I'd have to relearn how to scan code.
  24. You need the value of #txtSearch at the time the button is clicked, not when the page loads. And if you're going to be putting arbitrary values into the URL then you need to use a function like encodeURIComponent for it.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.