Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Commit

Permalink
Appcast editing
Browse files Browse the repository at this point in the history
Change to allow you to change the data in the appcast after initial
creation.
  • Loading branch information
rudyrichter committed Oct 9, 2011
1 parent 5c06ad7 commit af1675d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions version-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
$v->delete();
redirect('versions.php?id=' . $app->id);
}

if(isset($_POST['btnSave']))
{
$v->version_number = $_POST['version_number'];
$v->human_version = $_POST['human_version'];
$v->url = $_POST['url'];
$v->release_notes = $_POST['release_notes'];
$v->filesize = $_POST['filesize'];
$v->signature = $_POST['signature'];
$v->update();
}

$version_number = $v->version_number;
$human_version = $v->human_version;
Expand Down Expand Up @@ -48,6 +59,7 @@
<p><label for="filesize">Filesize</label> <input type="text" name="filesize" id="filesize" value="<?PHP echo $filesize; ?>" class="text"></p>
<p><label for="signature">Sparkle Signature</label> <input type="text" name="signature" id="signature" value="<?PHP echo $signature; ?>" class="text"></p>
<p><input type="submit" name="btnDelete" value="Delete Version" id="btnDelete" onclick="return confirm('Are you sure?');"></p>
<p><input type="submit" name="btnSave" value="Save" id="btnSave"></p>
</form>
</div>
</div>
Expand Down

0 comments on commit af1675d

Please sign in to comment.