Home arrow Forum

Remository Forum

 


karlolof

Karma: 0  
mambot automatically download - 2008/03/05 04:07 Hi
I'm trying to build a small mambot that automatically download a remository file inside a content.


In the content:
if download does not start automatically after a few seconds, please click on this link {quikremsitory id=xx text=Quickdown 2.1}


Will produce this html:

<script type="text/javascript">
/* <![CDATA[ */
function download(){window.location = 'http://www.remository.com/rem/Remository/download/420/chk,90a6561575360af5c08c5b1f32451633/ no_html,1/'}
/* ]]> */
</script>
<script type="text/javascript"> window.onload=download; </script>

if download does not start automatically after a few seconds, please click on this link <a href="http://www.remository.com/rem/Remository/download/420/chk,90a6561575360af5c08c5b1f32451633/ no_html,1/" rel="nofollow">Quickdown 2.1</a>


Is it possible to use your php-classes to make this work/mambot?

I'm want to use these downloadURL() and downloadLink() found in remositoryFile.php
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 57  
Re:mambot automatically download - 2008/03/11 23:39 Bear in mind that those check codes do not stay constant for more than a day or two! Martin Brampton aka Counterpoint
http://black-sheep-research.com
http://mamboguru.com
  | | Sorry, you do not currently have permission to write here.
karlolof

Karma: 0  
Re:mambot automatically download - 2008/03/12 21:55 Thanks for the response.
I'm new to program with object in php and remository has a lot of classes.
Do you think you can make a small hint to which class to initial, with a remository ID,
so I can use the downloadURL() and downloadLink()?
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 57  
Re:mambot automatically download - 2008/03/14 16:31 Have a look at p-classes/remositoryRepository.php and it includes methods for generating URIs for Remository. For the function "download" it will automatically create the correct check code. Martin Brampton aka Counterpoint
http://black-sheep-research.com
http://mamboguru.com
  | | Sorry, you do not currently have permission to write here.

Menu

Budding author?

Could you write about software?  Packt Publishing is looking for authors for its new series of Beginners' Guides.  Take a look at their web site to find out more.

Login Form

Username

Password

Remember me
Password Reminder
No account yet?
Create one

Who is Online

Remository welcomes guests and registered users.

We have 12 guest online