[Owncloud] client auto update

Jarrod Miles shadowq at gmail.com
Tue Sep 10 11:39:52 UTC 2013


I have changed the source and rebuilt the client to change the update
server.

My clientupdater.php file goes something like this (I've added a "client"
tag too for our individual purposes):

if($_GET['version'] && $_GET['platform'] && $_GET['client']){
    switch($_GET['client']){
        case "kjh":
            $latest['macos'] = "1.4.0";
            $latest['win32'] = "1.4.0";

        case "iforn":
        default:
            $latest['macos'] = "1.3.0";
            $latest['win32'] = "1.3.0";
    }

    if($_GET['version'] < $latest[$_GET['platform']]){
        echo '<?xml version="1.0"?>
    <owncloudclient>
      <version>'.$latest[$_GET['platform']].'</version>
      <versionstring>ownCloud Client
'.$latest[$_GET['platform']].'</versionstring>
      <web>
http://kjhosting.com/oc/owncloud-'.$latest[$_GET['platform']].'-'.($_GET['platform']
== "win32" ? 'win.exe' : 'mac.dmg').'</web>
    </owncloudclient>
        ';
    }else{
        echo '<?xml version="1.0"?>
    <owncloudclient>
      <version></version>
      <versionstring></versionstring>
      <web></web>
    </owncloudclient>
        ';
    }

}


On Tue, Sep 10, 2013 at 9:35 PM, kwillems <kwillems at zonnet.nl> wrote:

> I would like to know that too.
> Also, what's in 'clientupdater.php'? Is that piece of PHP published
> somewere?
>
> Cheers,
> Koen
>
>
>
> --
> View this message in context:
> http://owncloud.10557.n7.nabble.com/client-auto-update-tp10628p10715.html
> Sent from the ownCloud mailing list archive at Nabble.com.
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130910/f2e953d7/attachment.html>


More information about the Owncloud mailing list