|
From: <av...@us...> - 2003-11-05 15:52:58
|
Update of /cvsroot/sieve-php/sieve-php
In directory sc8-pr-cvs1:/tmp/cvs-serv2488
Modified Files:
test.php testsieve.php
Log Message:
Corrections to the test scripts
Index: test.php
===================================================================
RCS file: /cvsroot/sieve-php/sieve-php/test.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test.php 10 Nov 2001 02:37:11 -0000 1.12
--- test.php 5 Nov 2003 15:48:56 -0000 1.13
***************
*** 1,3 ****
! <?
/*
--- 1,3 ----
! <?php
/*
***************
*** 12,18 ****
include "./sieve-php.lib";
$bgcolor="#c0c0c0";
! if($action=="logout"){
unset($acctname);
unset($acctpass);
--- 12,38 ----
include "./sieve-php.lib";
+ if(isset($_POST['action'])) {
+ $action = $_POST['action'];
+ } elseif(isset($_GET['action'])) {
+ $action = $_POST['action'];
+ } else {
+ $action = false;
+ }
+
+ if(isset($_POST['script'])) {
+ $script = $_POST['script'];
+
+ } elseif(isset($_GET['script'])) {
+ $script = $_GET['script'];
+
+ } else {
+ $script = false;
+
+ }
+
+
$bgcolor="#c0c0c0";
! if(isset($action) && $action=="logout"){
unset($acctname);
unset($acctpass);
Index: testsieve.php
===================================================================
RCS file: /cvsroot/sieve-php/sieve-php/testsieve.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** testsieve.php 22 Oct 2003 13:07:21 -0000 1.7
--- testsieve.php 5 Nov 2003 15:48:57 -0000 1.8
***************
*** 24,28 ****
print "</head>";
print "<body>";
! print "<h1>seive-php.lib test script</h1>";
print "<h2>[Step 1] Trying to login to sieve server:</h2>";
--- 24,28 ----
print "</head>";
print "<body>";
! print '<h1><a href="http://sieve-php.sourceforge.net/">sieve-php.lib</a> test script</h1>';
print "<h2>[Step 1] Trying to login to sieve server:</h2>";
***************
*** 159,163 ****
print "<p>Sending $testscriptname...";
if($sieve->sieve_sendscript($testscriptname,$activescript)) {
! print "Upload Succedded.<br>";
} else {
print "Failed.<br />Error Message:";
--- 159,163 ----
print "<p>Sending $testscriptname...";
if($sieve->sieve_sendscript($testscriptname,$activescript)) {
! print "Upload Succeded.<br>";
} else {
print "Failed.<br />Error Message:";
|