Closed winnipeg21 closed 6 years ago
In config.php
/* This is a list of IPs that can access the gallery page (Leave empty for universal access) */ 'allowed_ips' => array('192.168.0.0', '0.0.0.0'),
For me it's empty
'allowed_ips' => '',
And I have set password on index.php using .htpasswd.
Only then you always need write url.com/u/index.php to login window show up.
Sorry for the delayed response, I have my config allowed_ips empty just like you. I'm receiving the header text and nothing else. All files have been changed to set to /img instead of /u. I'm also using cloudflare which can be an issue running scripts.
I'm using cloudflare too, it would be problem only if you use allowed ips. I just downloaded full script and edited in it only allowed_ips line to '' and all was working. And have you edited upload.php so it uploads to /img/ not /u/ ?
Everything works expect the gallery aspect doesn't appear
Doesn't load main.js in js folder :)
That could be something bad
So in the index.php I switched it from js/main.js ==> img/js/main.js. That didn't work. So then I switched it to /js/main.js.
You can always put main.js content in index.php, not best but if you can't load main.js that would fix it:
<script> $(document).ready(function() { $('#example').DataTable(); } ); </script>
I added that code line in. Still doesn't work. Just gives me a blank white screen with the heading.
You needed replace with that code not in head tags since jquery is loaded later and it shows error becouse of that.
I've done that. Still nothing
You can fully remove ip check from code:
Line 27 delete:
if(empty($config['allowed_ips']) || in_array($_SERVER['REMOTE_ADDR'], $config['allowed_ips'])){
And Line 54:
<?php }?>
And test then.
Works! Thanks
Looks like this is done, closing issue (feel free to reopen if needed!)
When i access my site via url.com/u is only shows the title. The table isn't there :/