トップページ > 記事閲覧
Index.php
投稿日 : 2013/11/11 19:01
投稿者 maurizio
参照先
Hi. i really appreciate your work in CG.
I have my cbr in a NAS webserver. I can make CG read my library using index.php, but i cannot have them sort by date, as the new CG capabilities would allow. I modified the index.php to include as a second element in the array the changed daate of teh file. I can visualize it in iexplorer, I can browse thelist in CG, but cannot sort them.
Do you have any input for me? Attached the modified index.php i use.

thanks
Re: Index.php
投稿日 : 2013/11/12 01:26
投稿者 Admin
参照先
Thank you for using ComicGlass.

Although the following PHP scripts are updated, do you use here?

http://comicglass.net/download/toolsdownload/
(PHP script for ComicGlass MediaServer)


ex.
bookdate=000000

00000 is posix time
Re: Index.php
投稿日 : 2013/11/14 17:22
投稿者 maurizio
参照先
Thanks! This works as indicated, but it would be perfect if it could sort also directories by date, not only files.

Do you think it can be done?

thanks agan,

maurizio
Re: Index.php
投稿日 : 2013/11/15 00:04
投稿者 Admin
参照先
Sorry, I forgot about folder date.

Please download fixed version.

http://comicglass.net/download/toolsdownload/
Re: Index.php
投稿日 : 2013/11/26 22:30
投稿者 shunzero_
参照先
Hello

I want to run apache http server in debian and I have problem with symbolic links. I read that maurizio had the same problem. Did you solve it?

I would like to talk about linux mediaserver with someone in english.

Thanks, best regards!
Re: Index.php
投稿日 : 2013/11/30 20:13
投稿者 Admin
参照先
Thank you for using ComicGlass.

For the moment about a symbolic link, it has not solved.
If only UTF-8 or an English file name is used, the index list which Apache generates will also operate.
Re: Index.php
投稿日 : 2013/12/16 04:44
投稿者 shunzero_
参照先
Hi again

There is the problem:

if(strpos($realpath, $bookpath, 0) !== 0)
{
echo "if is true";
//$path="./";
}

When you try to access out of /var/www, It will fail and $path will be the same, making a infinite loop.

I uncommented this line, I dont see any other problem doing it.

To navigate with symbolic links, you have to change the owner of the directory with the database as www-data:www-data, and give the correct permissions also.

Thanks!
Re: Index.php
投稿日 : 2013/12/19 00:28
投稿者 Admin
参照先
Thank you.

But directory traversal will also become possible if the line is commented.
Thank you.

- WEB PATIO -