//$phpi->generatedata($v['path']); $phpi->addPathDownload($v['url'], $v['to']); } else { if (isset($v['url'])) { $phpi->addPathDownload($v['url'], $v['to'], $v['type']); } else { if (isset($v['path'])) { $phpi->addPath($v['path'], $v['to']); } } } } //$phpi->addPath(gpv('rootpath')); $phpi->addPage('Pre-installation Check', file_get_contents('createinstaller/data/precheck.inc')); //license page if (gpv('step_license')) { if ($phpi->addMetaFile('license', 'createinstaller/data/license.html', 'text/html')) { $phpi->addPage('License', file_get_contents('createinstaller/data/license.inc'), array(), array('disabled' => true)); } else { $phpi->message('The license could not be added. Check the file ' . $lPath . '.'); } } if (!$phpi->addMetaFile('unknown', 'createinstaller/data/unknown.gif', 'image/gif')) { $phpi->message('The license could not be added. Check the file ' . $lPath . '.'); } if (!$phpi->addMetaFile('hb', 'createinstaller/data/installer.jpg', 'image/jpeg')) { $phpi->message('The license could not be added. Check the file ' . $lPath . '.'); } $phpi->addInstallerPages(); $phpi->generate(RESULTFILE); echo '<a href="?download">download</a>';
<?php $uses[] = 'rootpath'; $uses[] = 'packages'; $packages = gpv('packages'); function genSelect($type = null) { $compresstypes = ''; foreach (phpInstaller::$compresstypes as $v) { if ($v == $type) { $compresstypes .= "<option selected=\"selected\">{$v}</option>"; } else { $compresstypes .= "<option>{$v}</option>"; } } return $compresstypes; } ?> <h2>Files to Extract</h2> <p> Here you can add files that will be installed. Optional if you do not need files installed, or files are already distributed. </p> <div> <select name="package_type" id="package_type"> <option>Regluar</option> <option>Download</option> <option>Archive (Distributed With Installer)</option> </select> <input type="submit" name="package_add" id="package_add" value="Add..."></div> <?php
<?php $uses[] = 'ignore'; ?> <h2>Files to Ignore</h2> <p> Any files containing one of the following strings will be ignored: </p> <div> <textarea name="ignore" id="ignore" style="width:100%;height:10em;"><?php echo gpv('ignore'); ?> </textarea> </div>
<input type="submit" name="page_next" id="page_next" value="Next" style="float:right;" /> <?php } ?> <?php if ($button_prev) { ?> <input type="submit" name="page_back" id="page_back" value="Back" style="float:left;" /> <?php } ?> <input type="hidden" name="page" id="page" value="<?php echo $page; ?> " /> </div><br /> <?php //echo '<table>'; foreach ($hidden as $value) { if (!in_array($value, $uses)) { echo '<input type="hidden" name="' . $value . '" id="' . $value . '" value="' . gpv($value, null, false) . '" />'; //echo "<tr><td>$value</td><td>"; //var_dump(gpv($value)); //echo "</td></tr>\n"; } } //echo '</table>'; ?> </form> </body> </html>
<?php $uses[] = 'appname'; ?> <div><h2>Applactation Name</h2></div> <div>What is the name of your applactation?</div> <div class="margin"> <input type="text" style="width:30em;" name="appname" id="appname" value="<?php echo gpv('appname'); ?> " /> </div>