The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > 3rd Party Apps Requests
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-16-2007, 05:54 PM
shaiss's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 263
Thanks: 6
Thanked 33 Times in 21 Posts
Date key and MD5Sum for installer packages/sources

EXAMPLE: http://ride4.org/installer/zips/loop.php

ok, so I made a php file that gives you the 64bit date key needed for installer sources.

when you add this key to your package it will show up under the recent packages catagory.

also, it will generate the md5sum needed for the hash key that will be required soon.

I've never used php b4 today and have limited html experience, so if the code sucks or is messy sorry.

The cant figure out 2 things.
1: you need to define the absolute directory of the files you want the info for. This is stupid, should php know what directory its running from? look at the bottom of the example and you'll see "D:/...". any way to get rid of the D:/??? as I used getcwd.

2: I dont care to hash or get the date key for the "." and ".." entries. any way to skip that?

Here is the php code. Put it on your server, define the directory, and run it! Any mods to it our recommended as I am a php noob!
Code:
<HEAD>
 <TITLE>Create date codes from files</TITLE>
</HEAD>
<BODY>
<?php
 = "/inetpub/vhosts/ride4.org/httpdocs/installer/zips/";
// = getcwd() . "n";

// Open a known directory, and proceed to read its contents
if (is_dir()) {
    if ( = opendir()) {
        while (( = readdir()) !== false) {
            //echo "filename:  : filetime: " . fileatime( . ) . "n";
            echo "filename: <b></b>";
            echo "<br />";
            echo "&lt;key>date&lt;/key>";
            echo "<br />";
            echo "&lt;string>" . fileatime( . ) . "&lt;/string>";
            echo "<br />";
            echo "&lt;key>hash&lt;/key>";
            echo "<br />";
            echo "&lt;string>" . md5_file() . "&lt;/string>";
            echo "<br /><br />";
        }
    }
}
//echo getcwd() . "n";
echo  = (substr(PHP_OS, 0, 3) == 'WIN') ? strtolower(getcwd()) : getcwd();
?>
</BODY>
</HTML>
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 11-19-2007, 10:15 AM
shaiss's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 263
Thanks: 6
Thanked 33 Times in 21 Posts

anyone find this usefull or did I post this in the wrong area?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 12-14-2007, 12:56 AM
What's Jailbreak?
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I am a nood also

Can you zip up your loop.php file and link it? I seem to get a line error on line 6 and I am not sure if my copy past of the code is the issue.

Thank you
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 12-14-2007, 09:58 AM
shaiss's Avatar
iPhone? More like MyPhone
 
Join Date: Sep 2007
Posts: 263
Thanks: 6
Thanked 33 Times in 21 Posts

http://pastie.caboo.se/private/mov64r4icddbejd3ugq4g
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 12-14-2007, 09:32 PM
armadillo's Avatar
Theme Creator
 
Join Date: Jul 2007
Posts: 1,118
Thanks: 0
Thanked 503 Times in 309 Posts

This is not rocket science. To get the checksum and date keys you can use the shell:

MD5: md5 -q /Path/To/File
Time: date +%s
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > 3rd Party Apps Requests

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 04:32 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Top