Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updatesystem
#10
(04.06.2009, 14:15)Yannici Wrote: Achso ich hatte gedacht die Sprache (Deutsch, Englisch...).
Ne hätte das gerne in php.
Ne würde ein Projekt machen als ein Admintool und dort sind alle Tools drin, die man vom Admintool sofort runterladen kann.
Damit ich immer eine neue Version zum Downloaden machen muss würde ich ein Updatesystem machen, dass dann falls ein neues Tool gibt,
der Benutzer nicht ein neue Version hier im Forum runterladen muss sondern dass dann sofort im Admin Tool erscheint und er es sofort runterladen kann.

Falls ihr versteht was ich meine.
Es gab sowas ähnliches schonmal, aber ohne Updatesystem, das wäre dann praktisch.

Na da musst du zuerst eine datei im web machen. z.B. http://updatelink.de/blabla.txt

Dort muss der inhalt so sein:
Code:
tool1.txt
tool2.txt
....

Danach tool1.txt
Code:
TOOLNAME

Und tool1_version.txt
Code:
AKTUELLE VERSION
Die solltest du immer auf die aktuellste version updaten.

Und dann machste ne php datei: update.php (Oder anderer name)
PHP Code:
<?php
$link  
"http://updatelink.de/blabla.txt";
$lines file($link);

if (!
$lines)
{
  echo 
"Datei existiert nicht!";
}
else
{
  foreach (
$lines AS $value)
  {
    
$toolname[$value] = file_get_contents("http://updatelink.de/".$value);
    
$version[$value]  = file_get_contents("http://updatelink.de/".$toolname[$value]."_version.txt");
    
    if (
$jetzige_version_von_tool != $version[$value])
    {
      echo 
"Das Tool ".$toolname[$value]." ist nicht mehr aktuell! Neue Version: "$version[$value];
    }
    else
    {
      echo 
"Das Tool ".$toolname[$value]." ist aktuell!";
    }
  }
}
?>

Ich weiss nicht ob es geht aber ich glaube es geht ^^ werde es mal ausprobieren

Edit: Habs getestet es geht ^^ Falls es einen Fehler gibt, hier posten oder pn an mich

Edit2: Es gibt aber bessere varianten
✝ RiP 
Weiter geht's  Cool
Reply


Messages In This Thread
Updatesystem - by Yannici - 03.06.2009, 19:21
RE: Updatesystem - by agrafix - 03.06.2009, 22:07
RE: Updatesystem - by Yannici - 03.06.2009, 22:42
RE: Updatesystem - by -superking- - 03.06.2009, 22:45
RE: Updatesystem - by Yannici - 03.06.2009, 22:53
RE: Updatesystem - by -superking- - 03.06.2009, 23:20
RE: Updatesystem - by iNk - 04.06.2009, 05:40
RE: Updatesystem - by Philipp Ranft - 04.06.2009, 13:27
RE: Updatesystem - by Yannici - 04.06.2009, 14:15
RE: Updatesystem - by Milu2K - 04.06.2009, 18:08
RE: Updatesystem - by Yannici - 05.06.2009, 08:53
RE: Updatesystem - by Milu2K - 05.06.2009, 13:54
RE: Updatesystem - by Yannici - 05.06.2009, 17:33
RE: Updatesystem - by -superking- - 05.06.2009, 17:33
RE: Updatesystem - by Yannici - 05.06.2009, 17:35
RE: Updatesystem - by -superking- - 05.06.2009, 17:44



Users browsing this thread: 2 Guest(s)