Commit bcd6d1e3001eae0707073637c274895c2bed829e

Authored by kevin_fourie
1 parent 2df267db

KTS-2015

"Change license of ktwsapi to BSD licence"
Updated PHP code.

Committed By: Kevin
Reviewed By: Conrad



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6687 c91229c3-7414-0410-bfa2-8a42b809f60b
ktwsapi/php/examples/ktws_eg_add_document.php
1 <? 1 <?
2 -  
3 /** 2 /**
  3 + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd.
4 * 4 *
5 - * This is a sample of how to add a document to the repository. 5 + * All rights reserved.
6 * 6 *
7 - * The contents of this file are subject to the KnowledgeTree Public  
8 - * License Version 1.1.2 ("License"); You may not use this file except in  
9 - * compliance with the License. You may obtain a copy of the License at  
10 - * http://www.knowledgetree.com/KPL  
11 - *  
12 - * Software distributed under the License is distributed on an "AS IS"  
13 - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  
14 - * See the License for the specific language governing rights and  
15 - * limitations under the License. 7 + * Redistribution and use in source and binary forms, with or without
  8 + * modification, are permitted provided that the following conditions are met:
16 * 9 *
17 - * All copies of the Covered Code must include on each user interface screen:  
18 - * (i) the "Powered by KnowledgeTree" logo and  
19 - * (ii) the KnowledgeTree copyright notice  
20 - * in the same form as they appear in the distribution. See the License for  
21 - * requirements.  
22 - *  
23 - * The Original Code is: KnowledgeTree Open Source  
24 - *  
25 - * The Initial Developer of the Original Code is The Jam Warehouse Software  
26 - * (Pty) Ltd, trading as KnowledgeTree.  
27 - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright  
28 - * (C) 2007 The Jam Warehouse Software (Pty) Ltd;  
29 - * All Rights Reserved.  
30 - * Contributor( s): ______________________________________ 10 + * i) Redistributions of source code must retain the above copyright notice,
  11 + * this list of conditions and the following disclaimer.
  12 + * ii) Redistributions in binary form must reproduce the above copyright
  13 + * notice, this list of conditions and the following disclaimer in the
  14 + * documentation and/or other materials provided with the distribution.
  15 + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the
  16 + * names of its contributors may be used to endorse or promote products
  17 + * derived from this software without specific prior written permission.
31 * 18 *
  19 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  23 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO,
  25 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26 + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING
  28 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 30 */
33 31
34 require_once('../ktwsapi.inc.php'); 32 require_once('../ktwsapi.inc.php');
@@ -48,4 +46,4 @@ $root-&gt;add_document(&#39;c:/temp/test.doc&#39;); @@ -48,4 +46,4 @@ $root-&gt;add_document(&#39;c:/temp/test.doc&#39;);
48 46
49 $ktapi->logout(); 47 $ktapi->logout();
50 48
51 -?>  
52 \ No newline at end of file 49 \ No newline at end of file
  50 +?>
ktwsapi/php/examples/ktws_eg_anonymous.php
1 <? 1 <?
2 -  
3 /** 2 /**
  3 + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd.
4 * 4 *
5 - * Demonstrates how to create an anonymous session. 5 + * All rights reserved.
6 * 6 *
7 - * The contents of this file are subject to the KnowledgeTree Public  
8 - * License Version 1.1.2 ("License"); You may not use this file except in  
9 - * compliance with the License. You may obtain a copy of the License at  
10 - * http://www.knowledgetree.com/KPL  
11 - *  
12 - * Software distributed under the License is distributed on an "AS IS"  
13 - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  
14 - * See the License for the specific language governing rights and  
15 - * limitations under the License. 7 + * Redistribution and use in source and binary forms, with or without
  8 + * modification, are permitted provided that the following conditions are met:
16 * 9 *
17 - * All copies of the Covered Code must include on each user interface screen:  
18 - * (i) the "Powered by KnowledgeTree" logo and  
19 - * (ii) the KnowledgeTree copyright notice  
20 - * in the same form as they appear in the distribution. See the License for  
21 - * requirements.  
22 - *  
23 - * The Original Code is: KnowledgeTree Open Source  
24 - *  
25 - * The Initial Developer of the Original Code is The Jam Warehouse Software  
26 - * (Pty) Ltd, trading as KnowledgeTree.  
27 - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright  
28 - * (C) 2007 The Jam Warehouse Software (Pty) Ltd;  
29 - * All Rights Reserved.  
30 - * Contributor( s): ______________________________________ 10 + * i) Redistributions of source code must retain the above copyright notice,
  11 + * this list of conditions and the following disclaimer.
  12 + * ii) Redistributions in binary form must reproduce the above copyright
  13 + * notice, this list of conditions and the following disclaimer in the
  14 + * documentation and/or other materials provided with the distribution.
  15 + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the
  16 + * names of its contributors may be used to endorse or promote products
  17 + * derived from this software without specific prior written permission.
31 * 18 *
  19 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  23 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO,
  25 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26 + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING
  28 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 30 */
33 31
34 require_once('../ktwsapi.inc.php'); 32 require_once('../ktwsapi.inc.php');
@@ -51,4 +49,4 @@ $root=$ktapi-&gt;get_root_folder(); @@ -51,4 +49,4 @@ $root=$ktapi-&gt;get_root_folder();
51 49
52 $ktapi->logout(); 50 $ktapi->logout();
53 51
54 -?>  
55 \ No newline at end of file 52 \ No newline at end of file
  53 +?>
ktwsapi/php/examples/ktws_eg_checkin.php
1 <? 1 <?
2 -  
3 /** 2 /**
  3 + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd.
4 * 4 *
5 - * Demonstrates document checkout and checkin 5 + * All rights reserved.
6 * 6 *
7 - * The contents of this file are subject to the KnowledgeTree Public  
8 - * License Version 1.1.2 ("License"); You may not use this file except in  
9 - * compliance with the License. You may obtain a copy of the License at  
10 - * http://www.knowledgetree.com/KPL  
11 - *  
12 - * Software distributed under the License is distributed on an "AS IS"  
13 - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  
14 - * See the License for the specific language governing rights and  
15 - * limitations under the License. 7 + * Redistribution and use in source and binary forms, with or without
  8 + * modification, are permitted provided that the following conditions are met:
16 * 9 *
17 - * All copies of the Covered Code must include on each user interface screen:  
18 - * (i) the "Powered by KnowledgeTree" logo and  
19 - * (ii) the KnowledgeTree copyright notice  
20 - * in the same form as they appear in the distribution. See the License for  
21 - * requirements.  
22 - *  
23 - * The Original Code is: KnowledgeTree Open Source  
24 - *  
25 - * The Initial Developer of the Original Code is The Jam Warehouse Software  
26 - * (Pty) Ltd, trading as KnowledgeTree.  
27 - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright  
28 - * (C) 2007 The Jam Warehouse Software (Pty) Ltd;  
29 - * All Rights Reserved.  
30 - * Contributor( s): ______________________________________ 10 + * i) Redistributions of source code must retain the above copyright notice,
  11 + * this list of conditions and the following disclaimer.
  12 + * ii) Redistributions in binary form must reproduce the above copyright
  13 + * notice, this list of conditions and the following disclaimer in the
  14 + * documentation and/or other materials provided with the distribution.
  15 + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the
  16 + * names of its contributors may be used to endorse or promote products
  17 + * derived from this software without specific prior written permission.
31 * 18 *
  19 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  23 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO,
  25 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26 + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING
  28 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 30 */
33 31
34 require_once('../ktwsapi.inc.php'); 32 require_once('../ktwsapi.inc.php');
@@ -74,4 +72,4 @@ if (PEAR::isError($result)) @@ -74,4 +72,4 @@ if (PEAR::isError($result))
74 72
75 $ktapi->logout(); 73 $ktapi->logout();
76 74
77 -?>  
78 \ No newline at end of file 75 \ No newline at end of file
  76 +?>
ktwsapi/php/examples/ktws_eg_create_folder.php
1 <? 1 <?
2 -  
3 /** 2 /**
  3 + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd.
4 * 4 *
5 - * Demonstrates creating a folder in an active session. 5 + * All rights reserved.
6 * 6 *
7 - * The contents of this file are subject to the KnowledgeTree Public  
8 - * License Version 1.1.2 ("License"); You may not use this file except in  
9 - * compliance with the License. You may obtain a copy of the License at  
10 - * http://www.knowledgetree.com/KPL  
11 - *  
12 - * Software distributed under the License is distributed on an "AS IS"  
13 - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  
14 - * See the License for the specific language governing rights and  
15 - * limitations under the License. 7 + * Redistribution and use in source and binary forms, with or without
  8 + * modification, are permitted provided that the following conditions are met:
16 * 9 *
17 - * All copies of the Covered Code must include on each user interface screen:  
18 - * (i) the "Powered by KnowledgeTree" logo and  
19 - * (ii) the KnowledgeTree copyright notice  
20 - * in the same form as they appear in the distribution. See the License for  
21 - * requirements.  
22 - *  
23 - * The Original Code is: KnowledgeTree Open Source  
24 - *  
25 - * The Initial Developer of the Original Code is The Jam Warehouse Software  
26 - * (Pty) Ltd, trading as KnowledgeTree.  
27 - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright  
28 - * (C) 2007 The Jam Warehouse Software (Pty) Ltd;  
29 - * All Rights Reserved.  
30 - * Contributor( s): ______________________________________ 10 + * i) Redistributions of source code must retain the above copyright notice,
  11 + * this list of conditions and the following disclaimer.
  12 + * ii) Redistributions in binary form must reproduce the above copyright
  13 + * notice, this list of conditions and the following disclaimer in the
  14 + * documentation and/or other materials provided with the distribution.
  15 + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the
  16 + * names of its contributors may be used to endorse or promote products
  17 + * derived from this software without specific prior written permission.
31 * 18 *
  19 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  23 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO,
  25 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26 + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING
  28 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 30 */
33 31
34 require_once('../ktwsapi.inc.php'); 32 require_once('../ktwsapi.inc.php');
@@ -65,4 +63,4 @@ if (PEAR::isError($subfolder)) @@ -65,4 +63,4 @@ if (PEAR::isError($subfolder))
65 exit; 63 exit;
66 } 64 }
67 65
68 -?>  
69 \ No newline at end of file 66 \ No newline at end of file
  67 +?>
ktwsapi/php/examples/ktws_eg_doc_info.php
1 <? 1 <?
2 -  
3 /** 2 /**
  3 + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd.
4 * 4 *
5 - * Demonstrates using an active session and getting document info and metadata. 5 + * All rights reserved.
6 * 6 *
7 - * The contents of this file are subject to the KnowledgeTree Public  
8 - * License Version 1.1.2 ("License"); You may not use this file except in  
9 - * compliance with the License. You may obtain a copy of the License at  
10 - * http://www.knowledgetree.com/KPL  
11 - *  
12 - * Software distributed under the License is distributed on an "AS IS"  
13 - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  
14 - * See the License for the specific language governing rights and  
15 - * limitations under the License. 7 + * Redistribution and use in source and binary forms, with or without
  8 + * modification, are permitted provided that the following conditions are met:
16 * 9 *
17 - * All copies of the Covered Code must include on each user interface screen:  
18 - * (i) the "Powered by KnowledgeTree" logo and  
19 - * (ii) the KnowledgeTree copyright notice  
20 - * in the same form as they appear in the distribution. See the License for  
21 - * requirements.  
22 - *  
23 - * The Original Code is: KnowledgeTree Open Source  
24 - *  
25 - * The Initial Developer of the Original Code is The Jam Warehouse Software  
26 - * (Pty) Ltd, trading as KnowledgeTree.  
27 - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright  
28 - * (C) 2007 The Jam Warehouse Software (Pty) Ltd;  
29 - * All Rights Reserved.  
30 - * Contributor( s): ______________________________________ 10 + * i) Redistributions of source code must retain the above copyright notice,
  11 + * this list of conditions and the following disclaimer.
  12 + * ii) Redistributions in binary form must reproduce the above copyright
  13 + * notice, this list of conditions and the following disclaimer in the
  14 + * documentation and/or other materials provided with the distribution.
  15 + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the
  16 + * names of its contributors may be used to endorse or promote products
  17 + * derived from this software without specific prior written permission.
31 * 18 *
  19 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  23 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO,
  25 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26 + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING
  28 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 30 */
33 31
34 require_once('../ktwsapi.inc.php'); 32 require_once('../ktwsapi.inc.php');
ktwsapi/php/examples/ktws_eg_folder_listing.php
1 <? 1 <?
2 -  
3 /** 2 /**
  3 + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd.
4 * 4 *
5 - * Demonstrates document checkout and checkin 5 + * All rights reserved.
6 * 6 *
7 - * The contents of this file are subject to the KnowledgeTree Public  
8 - * License Version 1.1.2 ("License"); You may not use this file except in  
9 - * compliance with the License. You may obtain a copy of the License at  
10 - * http://www.knowledgetree.com/KPL  
11 - *  
12 - * Software distributed under the License is distributed on an "AS IS"  
13 - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  
14 - * See the License for the specific language governing rights and  
15 - * limitations under the License. 7 + * Redistribution and use in source and binary forms, with or without
  8 + * modification, are permitted provided that the following conditions are met:
16 * 9 *
17 - * All copies of the Covered Code must include on each user interface screen:  
18 - * (i) the "Powered by KnowledgeTree" logo and  
19 - * (ii) the KnowledgeTree copyright notice  
20 - * in the same form as they appear in the distribution. See the License for  
21 - * requirements.  
22 - *  
23 - * The Original Code is: KnowledgeTree Open Source  
24 - *  
25 - * The Initial Developer of the Original Code is The Jam Warehouse Software  
26 - * (Pty) Ltd, trading as KnowledgeTree.  
27 - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright  
28 - * (C) 2007 The Jam Warehouse Software (Pty) Ltd;  
29 - * All Rights Reserved.  
30 - * Contributor( s): ______________________________________ 10 + * i) Redistributions of source code must retain the above copyright notice,
  11 + * this list of conditions and the following disclaimer.
  12 + * ii) Redistributions in binary form must reproduce the above copyright
  13 + * notice, this list of conditions and the following disclaimer in the
  14 + * documentation and/or other materials provided with the distribution.
  15 + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the
  16 + * names of its contributors may be used to endorse or promote products
  17 + * derived from this software without specific prior written permission.
31 * 18 *
  19 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  23 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO,
  25 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26 + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING
  28 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 30 */
33 31
34 require_once('../ktwsapi.inc.php'); 32 require_once('../ktwsapi.inc.php');
@@ -69,4 +67,4 @@ foreach($listing as $folderitem) @@ -69,4 +67,4 @@ foreach($listing as $folderitem)
69 print "$title $item_type $mime_display\n"; 67 print "$title $item_type $mime_display\n";
70 } 68 }
71 69
72 -?>  
73 \ No newline at end of file 70 \ No newline at end of file
  71 +?>
ktwsapi/php/ktwsapi.inc.php
1 <? 1 <?
2 -  
3 /** 2 /**
  3 + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd.
4 * 4 *
5 - * This is the object model for the KnowledgeTree WebService. 5 + * All rights reserved.
6 * 6 *
7 - * The contents of this file are subject to the KnowledgeTree Public  
8 - * License Version 1.1.2 ("License"); You may not use this file except in  
9 - * compliance with the License. You may obtain a copy of the License at  
10 - * http://www.knowledgetree.com/KPL  
11 - *  
12 - * Software distributed under the License is distributed on an "AS IS"  
13 - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  
14 - * See the License for the specific language governing rights and  
15 - * limitations under the License. 7 + * Redistribution and use in source and binary forms, with or without
  8 + * modification, are permitted provided that the following conditions are met:
16 * 9 *
17 - * All copies of the Covered Code must include on each user interface screen:  
18 - * (i) the "Powered by KnowledgeTree" logo and  
19 - * (ii) the KnowledgeTree copyright notice  
20 - * in the same form as they appear in the distribution. See the License for  
21 - * requirements.  
22 - *  
23 - * The Original Code is: KnowledgeTree Open Source  
24 - *  
25 - * The Initial Developer of the Original Code is The Jam Warehouse Software  
26 - * (Pty) Ltd, trading as KnowledgeTree.  
27 - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright  
28 - * (C) 2007 The Jam Warehouse Software (Pty) Ltd;  
29 - * All Rights Reserved.  
30 - * Contributor( s): ______________________________________ 10 + * i) Redistributions of source code must retain the above copyright notice,
  11 + * this list of conditions and the following disclaimer.
  12 + * ii) Redistributions in binary form must reproduce the above copyright
  13 + * notice, this list of conditions and the following disclaimer in the
  14 + * documentation and/or other materials provided with the distribution.
  15 + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the
  16 + * names of its contributors may be used to endorse or promote products
  17 + * derived from this software without specific prior written permission.
31 * 18 *
  19 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  23 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO,
  25 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26 + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING
  28 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */ 30 */
33 31
34 // TODO: add more validation based on information already returned. this can prevent all validation being done server side and minimise a little traffic possibly... 32 // TODO: add more validation based on information already returned. this can prevent all validation being done server side and minimise a little traffic possibly...
@@ -1296,4 +1294,4 @@ class KTWSAPI @@ -1296,4 +1294,4 @@ class KTWSAPI
1296 } 1294 }
1297 } 1295 }
1298 1296
1299 -?>  
1300 \ No newline at end of file 1297 \ No newline at end of file
  1298 +?>
ktwsapi/php/ktwsapi_cfg.inc.php
1 <? 1 <?
2 /** 2 /**
3 - * This is the basic configuration for the KnowledgeTree WebService object model  
4 - */  
5 -  
6 -/*  
7 - * The contents of this file are subject to the KnowledgeTree Public  
8 - * License Version 1.1.2 ("License"); You may not use this file except in  
9 - * compliance with the License. You may obtain a copy of the License at  
10 - * http://www.knowledgetree.com/KPL  
11 - *  
12 - * Software distributed under the License is distributed on an "AS IS"  
13 - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  
14 - * See the License for the specific language governing rights and  
15 - * limitations under the License. 3 + * Copyright (c) 2007, The Jam Warehouse Software (Pty) Ltd.
  4 + *
  5 + * All rights reserved.
  6 + *
  7 + * Redistribution and use in source and binary forms, with or without
  8 + * modification, are permitted provided that the following conditions are met:
16 * 9 *
17 - * All copies of the Covered Code must include on each user interface screen:  
18 - * (i) the "Powered by KnowledgeTree" logo and  
19 - * (ii) the KnowledgeTree copyright notice  
20 - * in the same form as they appear in the distribution. See the License for  
21 - * requirements.  
22 - *  
23 - * The Original Code is: KnowledgeTree Open Source  
24 - *  
25 - * The Initial Developer of the Original Code is The Jam Warehouse Software  
26 - * (Pty) Ltd, trading as KnowledgeTree.  
27 - * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright  
28 - * (C) 2007 The Jam Warehouse Software (Pty) Ltd;  
29 - * All Rights Reserved.  
30 - * Contributor( s): ______________________________________ 10 + * i) Redistributions of source code must retain the above copyright notice,
  11 + * this list of conditions and the following disclaimer.
  12 + * ii) Redistributions in binary form must reproduce the above copyright
  13 + * notice, this list of conditions and the following disclaimer in the
  14 + * documentation and/or other materials provided with the distribution.
  15 + * iii) Neither the name of the The Jam Warehouse Software (Pty) Ltd nor the
  16 + * names of its contributors may be used to endorse or promote products
  17 + * derived from this software without specific prior written permission.
31 * 18 *
  19 + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20 + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  23 + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  24 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO,
  25 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  26 + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  27 + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ( INCLUDING
  28 + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  29 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30 + */
  31 +
  32 +/**
  33 + * This is the basic configuration for the KnowledgeTree WebService object model
32 */ 34 */
33 35
34 // Path to PEAR libraries 36 // Path to PEAR libraries
@@ -43,4 +45,4 @@ define(&#39;KTWebServiceURL&#39;, &#39;http://ktdms.trunk&#39;); @@ -43,4 +45,4 @@ define(&#39;KTWebServiceURL&#39;, &#39;http://ktdms.trunk&#39;);
43 define('KTWebService_WSDL', KTWebServiceURL . '/ktwebservice/?wsdl'); 45 define('KTWebService_WSDL', KTWebServiceURL . '/ktwebservice/?wsdl');
44 define('KTUploadURL', KTWebServiceURL . '/ktwebservice/upload.php'); 46 define('KTUploadURL', KTWebServiceURL . '/ktwebservice/upload.php');
45 47
46 -?>  
47 \ No newline at end of file 48 \ No newline at end of file
  49 +?>