Re: [dl-ticket-service] useradmin.php

2015-07-21 Thread Amen Ankh

Isn't there already a user named 'admin' or did you removed that
account before ???

Because there must be an account named 'admin' created while install of
'dlTicket' !!!

Option is to create an account and elevate it to an admin account
later, but name it something else than admin...




# # # # # # # # # # # # # # # # # # # # # # # # # #
# ORIGINAL MESSAGE IS FOLLOWING
# # # # # # # # # # # # # # # # # # # # # # # # # #
MsgID: loom.20150721t040741-...@post.gmane.org
From: John 
Date: Tue, 21 Jul 2015 02:11:24 + (UTC)
Subject: [dl-ticket-service] useradmin.php

> When I try to execute the following command:
> 
> php useradmin.php add "admin" "true" "change me"
> 
> (I did it with and without quotes) I get a 500 Unknown command error. Is
> there anyway to add a username and password directly to the database or
> useradmin.php file?
> 
> Thanks John Cardell 
> 
> 
> 




Re: [dl-ticket-service] Nginx + rest.php

2014-10-24 Thread Amen Ankh
192.168.---.--- - testuser [24/Oct/2014:13:22:42 +0200]
"POST /dl/rest.php/newticket HTTP/1.1" 200 122 "-" "dl-wx/0.11" "-"

You're right... with version dl-wx 0.11 it works perfectly.. tested
with 2,6Gig file... thanks a lot.


# # # # # # # # # # # # # # # # # # # # # # # # # #
# ORIGINAL MESSAGE IS FOLLOWING
# # # # # # # # # # # # # # # # # # # # # # # # # #
MsgID: 5448f912.9050...@thregr.org
From: Yuri D'Elia 
Date: Thu, 23 Oct 2014 14:48:18 +0200
Subject: Re: [dl-ticket-service] Nginx + rest.php

> On 10/23/2014 02:36 PM, Amen Ankh wrote:
> > Tested on Windows 7 64 Ultimate, nginx-1.7.1.3-RedKnight + PHP Farm
> > 
> > In the Browser : works excellent
> > 
> > In the WX Client via Rest : DL service error
> > 
> > access.log:
> > 192.168.---.--- - testuser [23/Oct/2014:13:48:56 +0200]
> > "POST /dl/rest.php/newticket HTTP/1.1" 401 5 "-" "dl-wx/0.10" "-"
> 
> Is this dl-wx 0.10, or did I forget to update the version in the User-agent?
> 
> You need at least 0.11.
> 
> 
> 




Re: [dl-ticket-service] Nginx + rest.php

2014-10-23 Thread Amen Ankh
Tested on Windows 7 64 Ultimate, nginx-1.7.1.3-RedKnight + PHP Farm

In the Browser : works excellent

In the WX Client via Rest : DL service error

access.log:
192.168.---.--- - testuser [23/Oct/2014:13:48:56 +0200]
"POST /dl/rest.php/newticket HTTP/1.1" 401 5 "-" "dl-wx/0.10" "-"

PHP LOG:
[23-Oct-2014 13:48:56 --/--] DL: error: [192.168.---.---]
invalid credentials


# # # # # # # # # # # # # # # # # # # # # # # # # #
# ORIGINAL MESSAGE IS FOLLOWING
# # # # # # # # # # # # # # # # # # # # # # # # # #
MsgID: 5447cd25@thregr.org
From: Yuri D'Elia 
Date: Wed, 22 Oct 2014 17:28:37 +0200
Subject: Re: [dl-ticket-service] Nginx + rest.php

> I just tried a stock DL 0.15 using nginx on Debian.
> When installed as a subdirectory, I could get DL to work with the following:
> 
> location ^~ /dl {
>   # Protect the include directories
>   location ~ ^/dl(?:/|/.*/)include {
>   deny all;
>   } 
> 
>   index index.php index.html;
>   try_files $uri $uri/ =404;
>   
>   # Enable PHP
>   location ~ \.php(?:$|/) {
>   include fastcgi_params;
> 
>   # Set maximum body size (should be the same as PHP's post_max_size)
>   client_max_body_size 512M;
> 
>   # Setup PATH_INFO
>   fastcgi_split_path_info ^(.+\.php)(/.+)$;
>   try_files $fastcgi_script_name =404;
>   
>   set $path_info $fastcgi_path_info;
>   fastcgi_param PATH_INFO   $path_info;
>   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
>   
>   fastcgi_index index.php;
>   fastcgi_pass unix:/var/run/php5-fpm.sock;
>   }
>   }   
> 
> Notice the order of the location directives to protect the include 
> directories, and also the PHP location matching ``\.php(?:$|/)'' in order to 
> allow PATH_INFO to route requests properly.
> 
> After that I didn't need to forward any header explicitly, and it works fine.
> Let me know if this helps.
> 
> 
> 




Re: [dl-ticket-service] Nginx + rest.php

2014-10-18 Thread Amen Ankh
Same Problem here,

dl cant be used via rest.php and (dl-wx) on Windows with NGINX+PHP-Farm.
Testet with dl-wx-0.10-win32 and dl-wx-0.11-win32. There is no Error
output in error.log (PHP+NGINX) :testet with tail.
The WX Client says: 

Upload error
DL service error: Found
-
see attachement...

By the way i am thinking about programming a clinet by my self on
dotnet/MONO to bypass the giant python client 30,93 MB Memmory Usage on
Standby and 20.1 MB Application Folder Size!!!

# # # # # # # # # # # # # # # # # # # # # # # # # #
# ORIGINAL MESSAGE IS FOLLOWING
# # # # # # # # # # # # # # # # # # # # # # # # # #
MsgID: 5442666d.2050...@smurv.cz
From: "Jan B. Kolář" 
Date: Sat, 18 Oct 2014 15:09:01 +0200
Subject: Re: [dl-ticket-service] Nginx + rest.php

> Dear Yuri,
> 
> thank you for your reply. I checked log and it just say:
> 
> [18-Oct-2014 12:22:39 Europe/Prague] DL: error: [xx.xx.xx.xx] invalid 
> credentials
> 
> No error in PHP or nginx logs.
> 
> I have added your suggested line but nothing changed. Server still not 
> asking for credentials, just leave me with blank page (header from 
> server said 401 Unauthorized).
> 
> Nobody use nginx with dl?
> 
> Jan
> 
> Dne 17.10.2014 20:12, Yuri D'Elia napsal(a):
> > On 10/17/2014 07:36 PM, "Jan B. Kolář" wrote:
> >> My Nginx config part for "rest.php" file is:
> >>
> >> location = /rest.php {
> >> fastcgi_pass_header Authorization;
> > I have no experience with nginx.
> > If the headers are not forwarded by default, I would assume:
> >
> >fastcgi_pass_header X-Authorization;
> >
> > is also needed. If you're using DL 0.14 the log should also contain some
> > extra info.
> >
> >
> >
> 
> 
> 


[dl-ticket-service] if(!posix_access($spoolDir, POSIX_R_OK | POSIX_W_OK))

2012-06-01 Thread Amen Ankh
there is no posix access on windows systems for php and if so... they
should be disabled...

x:\root\dl-0.10.1\htdocs\include\confwrap.php 
Line 17: if(!posix_access($cfgPath, POSIX_R_OK))  

x:\root\dl-0.10.1\htdocs\include\init.php
Line 8: if(!posix_access($spoolDir,POSIX_R_OK | POSIX_W_OK))

as far as i understand you want to see if file
exists and is read/writeable right?

whould it make sense to use 
is_readable('config.php')
is_writable('config.php') 
var_dump(is_dir('../includes')); 

instead to bypass this Windows related bug??

tanks for attention...

Amen

Amen em hat Ankh