Page 26 of 36,922, showing 100 records out of 3,692,143 total, starting on record 2,501, ending on 2,600
# | Username | Text | |
---|---|---|---|
# | Aug 7th 2008, 07:18 | jonathan_ | never mind, worked it out myself |
# | Aug 7th 2008, 07:20 | alkemann | thats ok. we dont mind being a teddy |
# | Aug 7th 2008, 07:21 | slartibartfast76 | Hello has some one experience to configure the htaccess files of cakephp with the provider webspace-verkauf.de ? Thanks in advance |
# | Aug 7th 2008, 07:24 | alkemann | most often the problem is that the webhost dont allow htaccess and what u gotta do is delete them and uncomment a line in config/core.php |
# | Aug 7th 2008, 07:25 | lqdice__ | get a diff webhost ;P |
# | Aug 7th 2008, 07:26 | alkemann | well. in reality the question is this : do u want a pretty your or a secure webapp ? and by pretty I mean do u mind the index.php part of domain.com/index.php/apples/edit |
# | Aug 7th 2008, 07:30 | slartibartfast76 | alkemann: thanks for the hint. I have deletet den htaccess files an unkomment the line in the core. But I still have rewritet URLs in the links of the Application. And get 404 error if I click on them. |
# | Aug 7th 2008, 07:30 | lqdice__ | how is url rewriting not secure? |
# | Aug 7th 2008, 07:30 | alkemann | nice name slartibartfast76 :) |
# | Aug 7th 2008, 07:30 | lqdice__ | its pretty much all around the net.. even on the big boys sites |
# | Aug 7th 2008, 07:30 | alkemann | i like him cause he is most proud of the country im from :P |
# | Aug 7th 2008, 07:31 | stevieboy | is there anything in cake for reading files? |
# | Aug 7th 2008, 07:31 | stevieboy | some sweet magic? |
# | Aug 7th 2008, 07:31 | lqdice__ | stevieboy: what kind of file |
# | Aug 7th 2008, 07:31 | stevieboy | text |
# | Aug 7th 2008, 07:31 | stevieboy | i can use fgets and so on |
# | Aug 7th 2008, 07:31 | alkemann | lqdice__: u can download a script, put it on ur server and u can then do "cd .." out to htdocs root and enter other ppls htdocs. (ok thats paraphrasing, I havent actually done it myself) |
# | Aug 7th 2008, 07:32 | alkemann | stevieboy: xml parser probably uses something like that. have u looked at it? |
# | Aug 7th 2008, 07:32 | lqdice__ | alkemann: not if your user is configured properly.. you MAY be able to do a ls but you wont be able to d/l or see anything if the user you are logged in as doesn't have permissions to anything outside of your folder |
# | Aug 7th 2008, 07:33 | alkemann | slartibartfast76: you wouldnt have had to do that if u had used $html->link instead of hardcoding them :P |
# | Aug 7th 2008, 07:33 | lqdice__ | stevieboy: the book contains the built in utilities.. maybe you can find something.. but use plain PHP if there isnt anything, nothing wrong w/ that |
# | Aug 7th 2008, 07:33 | stevieboy | alkemann: well, no. i'll check it. thx for the hint. |
# | Aug 7th 2008, 07:33 | stevieboy | lqdice__: i know... but you know... i love cake magic |
# | Aug 7th 2008, 07:33 | alkemann | lqdice__: "configured properly" off course. goes without saying. but many, too many, arent. I know that this is possible on two of the places that I have had things in the past |
# | Aug 7th 2008, 07:34 | lqdice__ | what does this have to do w/ ht access though ? |
# | Aug 7th 2008, 07:34 | lqdice__ | if the server is not configured properly you will have a lot of potential holes |
# | Aug 7th 2008, 07:35 | Kitara | is there a way to make AuthComponent redirect to /users/login instead of /plugin/users/login ? |
# | Aug 7th 2008, 07:35 | alkemann | Kitara: take another look at the api |
# | Aug 7th 2008, 07:36 | lqdice__ | Kitara: there are vars that lets you specify where to send when you login, where the login page is ,etc.. its in the books |
# | Aug 7th 2008, 07:36 | lqdice__ | Have any of you guys used the tree behaviour and added security around it .. basically I am trying to make a file explorer online but i need to limit the access to certain files for certain users |
# | Aug 7th 2008, 07:37 | Kitara | lqdice__: $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); like this ? |
# | Aug 7th 2008, 07:37 | lqdice__ | looks good |
# | Aug 7th 2008, 07:37 | alkemann | lqdice__: what has the one to do with the other |
# | Aug 7th 2008, 07:37 | Kitara | still, does'nt work |
# | Aug 7th 2008, 07:37 | alkemann | Kitara: $this->Auth->loginRedirect |
# | Aug 7th 2008, 07:38 | Kitara | alkemann: that is for after the login right ? |
# | Aug 7th 2008, 07:38 | alkemann | yea, wasnt that what u were asking? |
# | Aug 7th 2008, 07:38 | lqdice__ | Kitara: you can do 'users/login' too i believe..or try '/users/login' .. one of them wont keep the plugins there |
# | Aug 7th 2008, 07:38 | lqdice__ | alkemann: well if you think about it, if I give access to some file, i need to show the entire directory tree.. so its just tricky |
# | Aug 7th 2008, 07:39 | primeminister | achew22: you still here? |
# | Aug 7th 2008, 07:39 | alkemann | lqdice__: well the best would proably be to do an acl tree |
# | Aug 7th 2008, 07:39 | lqdice__ | alkemann: for each folder? |
# | Aug 7th 2008, 07:39 | Kitara | lqdice__: both not working |
# | Aug 7th 2008, 07:39 | lqdice__ | it would be nice if it could |
# | Aug 7th 2008, 07:40 | lqdice__ | it would be nice if it could just enumerate the folders if i give access to the file.. so if the file gets moved they still have access to it etc.. |
# | Aug 7th 2008, 07:40 | alkemann | lqdice__: well files too. thing is that u dont need an acl tree = file tree cause the default is deny for all and there is inheritance in the acl |
# | Aug 7th 2008, 07:41 | SteffenGoertz | how can i link to files in the webroot/files direcotry |
# | Aug 7th 2008, 07:41 | alkemann | . /files |
# | Aug 7th 2008, 07:41 | alkemann | $html->link('/files/thing.png', 'thing'); |
# | Aug 7th 2008, 07:42 | lqdice__ | alkemann: but what i mean is .. if i give someone access to /Programs/SomeProgram/Version 2.0/Windows_Install.exe they should at the first page see /Programs then have to click through like a regular directory |
# | Aug 7th 2008, 07:42 | alkemann | why force ppl to click more times then they need to? |
# | Aug 7th 2008, 07:43 | lqdice__ | its going to be a lot of files |
# | Aug 7th 2008, 07:43 | alkemann | and the way it works if you only have access to a leaf, you dont have access to the root |
# | Aug 7th 2008, 07:43 | lqdice__ | right |
# | Aug 7th 2008, 07:43 | lqdice__ | thats why i didnt think ACL would be right for this |
# | Aug 7th 2008, 07:43 | lqdice__ | what I could possibly do is just have a Folder hasMany Folders and hasMany Files |
# | Aug 7th 2008, 07:43 | alkemann | so if a user only have acces to that file, he doesnt have access to the /programs folder and shouldnt even know it exists (imho) |
# | Aug 7th 2008, 07:44 | alkemann | lqdice__: dont differentiate between files and folders |
# | Aug 7th 2008, 07:44 | alkemann | Node hasMany Node . and a node can be a file or a folder (or even both) |
# | Aug 7th 2008, 07:44 | lqdice__ | alkemann: he has access to the Programs folder.. but he will only see the /SomeProgram/Version 2.0/Windows_Install.exe in his tree |
# | Aug 7th 2008, 07:44 | lqdice__ | alkemann: they have different meta data though |
# | Aug 7th 2008, 07:45 | alkemann | 2 behaviors |
# | Aug 7th 2008, 07:45 | lqdice__ | one if you click it d/l's the other just opens it up |
# | Aug 7th 2008, 07:45 | alkemann | 1 mode |
# | Aug 7th 2008, 07:45 | alkemann | model* |
# | Aug 7th 2008, 07:45 | lqdice__ | thats not a big deal im not worried about that.. im just wondering if doing node hasMany nodes is too heavy |
# | Aug 7th 2008, 07:45 | lqdice__ | thats why i was thinking tree behaviour might be better |
# | Aug 7th 2008, 07:45 | alkemann | better than folders hasmany folders and folders hasMany files imho |
# | Aug 7th 2008, 07:46 | lqdice__ | i mean .. nodes hasmany nodes VS tree behaviour |
# | Aug 7th 2008, 07:46 | alkemann | lqdice__: thats what i mean Node actsAs Tree and have 2 behaviors for the node for file vs folder |
# | Aug 7th 2008, 07:47 | alkemann | or u can have Folder actsAs Tree, Folder hasMany Files and Files actsAs Ordered (my behavior) |
# | Aug 7th 2008, 07:47 | lqdice__ | alkemann: do you think w/ this method it will be easy enough to enumerate the entire tree to display? |
# | Aug 7th 2008, 07:48 | sokar007 | hi, in cakephp manual http://book.cakephp.org/view/303/file-fields $this->data['Documents']['submittedfile'] is array with few few fields. i tried it and i have only filename - why ? |
# | Aug 7th 2008, 07:48 | alkemann | only have rights on files, only show folders where user has files with read rights ? |
# | Aug 7th 2008, 07:48 | lqdice__ | or rather . i just want to get the children of a node.. is that easy enough? so if they are at /SomeProgram folder i just want to show its children |
# | Aug 7th 2008, 07:48 | lqdice__ | yes |
# | Aug 7th 2008, 07:49 | lqdice__ | so if I am in /SomeProgram and it has 30 folders w/ 30 files each but the user only has access to 1 file.. it should only show that 1 folder |
# | Aug 7th 2008, 07:49 | alkemann | the good thing about this last method is you can easily only show files for one folder at a time, but show the entire folder structure (like windows) |
# | Aug 7th 2008, 07:49 | lqdice__ | which method.. folder actsAs Tree, folder hasMany Files ? |
# | Aug 7th 2008, 07:49 | alkemann | yes |
# | Aug 7th 2008, 07:50 | alkemann | u do $tree = $this->Folder->find('threaded'); $folder = $this->Folder->find($id); the first with recursive -1 and the second with 1 |
# | Aug 7th 2008, 07:50 | lqdice__ | well I also have to put conditions to make sure the user has access to it (which is the part im worried about) |
# | Aug 7th 2008, 07:51 | alkemann | it will be a little complicated, but should be doable |
# | Aug 7th 2008, 07:51 | lqdice__ | the SQL will have to dig all the way to the leaf and if I have access to the leaf, give access to the parent |
# | Aug 7th 2008, 07:51 | lqdice__ | basically |
# | Aug 7th 2008, 07:51 | lqdice__ | have you seen anyone do something like this before? |
# | Aug 7th 2008, 07:52 | Ins|de | hi there, i could change layout files with $this->layout variable right? can i do it on app_controller or just on the extended controller? |
# | Aug 7th 2008, 07:52 | alkemann | lqdice__: not that i recall atm |
# | Aug 7th 2008, 07:52 | lqdice__ | Ins|de: you should be able to do it in app_controller beforeFilter |
# | Aug 7th 2008, 07:53 | alkemann | can even do it in view |
# | Aug 7th 2008, 07:53 | lqdice__ | alkemann: this will def be interesting |
# | Aug 7th 2008, 07:53 | alkemann | i look forward to seein how it turns out :) |
# | Aug 7th 2008, 07:53 | alkemann | you should try to make behavior for it so it can be reused |
# | Aug 7th 2008, 07:53 | Ins|de | lqdice__, i did it, changed from default to backoffice, and when i do $this->layout = 'backoffice'; it does not work.. |
# | Aug 7th 2008, 07:54 | lqdice__ | alkemann: this is for a file upload utility... it will even need to be able to sync back up from the filesystem so if someone drops a file in the system it enumerates it into the database |
# | Aug 7th 2008, 07:54 | lqdice__ | i dont want it to run directly off the filesystem though |
# | Aug 7th 2008, 07:54 | lqdice__ | i guess I could though |
# | Aug 7th 2008, 07:55 | alkemann | u can save the files in the DB even |
# | Aug 7th 2008, 07:55 | lqdice__ | well I will still need the d/b to manage the access so it has to be in the db |
# | Aug 7th 2008, 07:55 | lqdice__ | these files are gonna be huge.. up to 2gb |