public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Search Repo:
Added from parameter support.


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@4086 
3d254a34-79dc-0310-9e5f-be208747d8a0
calguy1000 (author)
Thu Aug 23 18:42:01 -0700 2007
commit  1ca21e54d6c89b05787a6791b667c86fc35e107b
tree    7a4295ae182d98c7e45e44c7fb844115a61ce37a
parent  8094ed39a35c63a6fb0a2d5e3335817baeeec707
...
36
37
38
 
 
 
 
 
 
 
 
 
 
39
40
41
 
42
43
44
...
108
109
110
111
 
112
113
114
...
150
151
152
153
 
154
155
156
...
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 
51
52
53
54
...
118
119
120
 
121
122
123
124
...
160
161
162
 
163
164
165
166
0
@@ -36,9 +36,19 @@ else if (isset($_GET["template_id"])) $template_id = $_GET["template_id"];
0
 
0
 if (isset($_REQUEST["template_name"])) { $template_name = $_REQUEST["template_name"]; }
0
 
0
+$from = 'listtemplates.php';
0
+if (isset($_GET['from']) )
0
+ {
0
+ $from = 'moduleinterface.php?module='.$_GET['from'];
0
+ }
0
+else if( isset( $_POST['from'] ) )
0
+ {
0
+ $from = $_POST['from'];
0
+ }
0
+
0
 if (isset($_POST["cancel"]))
0
 {
0
- redirect("listtemplates.php");
0
+ redirect($from);
0
   return;
0
 }
0
 
0
@@ -108,7 +118,7 @@ if ($access)
0
         }
0
 
0
         audit($onetemplate->id, $onetemplate->name, 'Copied Template');
0
- redirect("listtemplates.php");
0
+ redirect($from);
0
         return;
0
       }
0
       else
0
@@ -150,7 +160,7 @@ else
0
     <div class="pageoverflow">
0
       <p class="pagetext">&nbsp;</p>
0
       <p class="pageinput">
0
- <input type="hidden" name="template_id" value="<?php echo $template_id?>" /><input type="hidden" name="copytemplate" value="true" />
0
+ <input type="hidden" name="template_id" value="<?php echo $template_id?>" /><input type="hidden" name="copytemplate" value="true" /><input type="hidden" name="from" value="<?php echo $from?>" />
0
         <input type="submit" value="<?php echo lang('submit')?>" class="pagebutton" onmouseover="this.className='pagebuttonhover'" onmouseout="this.className='pagebutton'" />
0
         <input type="submit" name="cancel" value="<?php echo lang('cancel')?>" class="pagebutton" onmouseover="this.className='pagebuttonhover'" onmouseout="this.className='pagebutton'" />
0
       </p>

Comments

    No one has commented yet.