mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3600 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
		
			
				
	
	
		
			27 lines
		
	
	
		
			690 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			690 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
|     $TOPDIR = '..';
 | |
|     require_once "$TOPDIR/lib/functions.php";
 | |
|     //get the necessary information from the copyfile dialog, 
 | |
|     //Now it ONLY checks the following two arguments: source file name, and dest directory;
 | |
|     $src = $_REQUEST["src"];
 | |
|     $dest = $_REQUEST["dest"];
 | |
|     $nr = $_REQUEST["noderange"];
 | |
|     $cmd = $_REQUEST["command"];
 | |
| ?>
 | |
| <p>
 | |
| <?php
 | |
|     //TODO
 | |
|     echo "Command:  <b>$cmd $nr $src $dest</b>";
 | |
| ?>
 | |
| </p>
 | |
| <p>
 | |
| <?php 
 | |
|     $arg = "$src $dest";
 | |
|     echo "<p>argument is:$arg</p>";
 | |
|     $xml = docmd($cmd, $nr, array($src, $dest));
 | |
|     foreach($xml->children() as $response) foreach ($response->children() as $line) {
 | |
|          echo "$line<br />";
 | |
|     }
 | |
| ?>
 | |
| </p>
 |