Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <p><h2>Patching tool:</h2></p>
- <p>Version for patch:</p>
- <?php
- $version = shell_exec("/opt/patches.sh 2>&1");
- echo "<pre>$version</pre>";
- chdir('/opt/patches/kc_patches/');
- echo getcwd() . "\n";
- $iterator = new DirectoryIterator('.');
- $filelist = array();
- $counter = 0;
- foreach ($iterator as $fileinfo) {
- $filelist[]=$fileinfo->getFilename();
- echo "$fileinfo" . "\n";
- $counter++;
- }
- echo $counter;
- echo $filelist[0];
- $value1=$filelist[0];
- # $value2=$filelist[1];
- # $value3=$filelist[2];
- ?>
- <form method="post">
- <p>KC release ver.: <select name="kc_version" >
- <?php
- foreach ($filelist as $counter) {
- echo $counter;
- echo $value1;
- echo $filelist[0];
- echo "<option value=" . "$filelist[$counter]" . ">" . "$filelist[$counter]" . "</option>";
- }
- ?>
- # <option value="<?php echo "$value2"; ?>"><?php echo "$value2"; ?></option>
- # <option value="<?php echo "$value3"; ?>"><?php echo "$value3"; ?></option>
- </select></p>
- <p><input type="submit" /></p>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement