Jump to content


Popular Content

Showing content with the highest reputation on 05/31/2020 in all areas

  1. 1 point

    1064 error and worse ...

    @sickaporean Which version of Phoenix are you using? IIRC, this was an error introduced in, and was quickly fixed in Malcolm
  2. 1 point

    Easy Admin Group - Login Issues

    @Fredi do you know where this folder is "override" and also I made a new file if u wanna to test it. this dose not need any core changes. haven't tested it one 1.0.7.x aMenu.php
  3. 1 point

    Google analytics dashboard

    I've recently been helping out with a wordpress website and there is a plugin that shows a basic version of the Google analytics page. Does anything similar exist for oscommerce? Is anyone working on an add-on for this?
  4. 1 point

    Discount Code BS

    Not updated yet. It's on the list.
  5. 1 point
    I would do it right before the return rather than where you're doing it, for efficiency's sake and to make sure you sort every file. I think that you are implicitly sorting by path most of the time but not always. Try usort($result, function ($a, $b) { return strcmp($a['name'], $b['name']); }); return $result; That explicitly sorts by path. Or even better might be to move it outside the function entirely. foreach (tep_opendir(DIR_FS_CATALOG_LANGUAGES . $_GET['lngdir']) as $file) { to $files = tep_opendir(DIR_FS_CATALOG_LANGUAGES . $_GET['lngdir']); usort($result, function ($a, $b) { return strcmp($a['name'], $b['name']); }); foreach ($files as $file) {