<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/model/WildfireNotifier.php</filename>
    </added>
    <added>
      <filename>resources/public/javascripts/build/wildfire_cms.combined.js</filename>
    </added>
    <added>
      <filename>resources/public/javascripts/build/wildfire_cms.combined.min.js</filename>
    </added>
    <added>
      <filename>resources/public/javascripts/build/wildfire_filesystem.js</filename>
    </added>
    <added>
      <filename>resources/public/javascripts/build/wildfire_filesystem.min.js</filename>
    </added>
    <added>
      <filename>view/CMSAdminSectionController/filters.html</filename>
    </added>
    <added>
      <filename>view/wildfire_notifier/comment_approval.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -55,11 +55,24 @@ class CMSAdminComponent extends WaxController {
 	public $permissions = array();
 	
 	function __construct($initialise = true) {
+	  parent::__construct($initialise);
 	  $this-&gt;permissions = array_unique(array_merge($this-&gt;base_permissions,$this-&gt;permissions));
 	  $this-&gt;help_files = array_unique(array_merge($this-&gt;extra_help, $this-&gt;base_help));
 	  if($initialise) $this-&gt;initialise();
 	}
 	
+	public function __destruct(){
+	  $log = new WildfireLog;
+	  $log-&gt;controller=$this-&gt;controller;
+		$log-&gt;action=$this-&gt;action;
+		$log-&gt;page=$this-&gt;id;
+		if(Request::param('lang')) $log-&gt;language = Request::param('lang');
+		$log-&gt;user=$this-&gt;current_user-&gt;id;
+		$log-&gt;time = date(&quot;Y-m-d H:i:s&quot;);
+		$log-&gt;save();
+	}
+	
+	
 	/** 
 	* initialises authentication, default model and menu items
 	**/
@@ -99,6 +112,7 @@ class CMSAdminComponent extends WaxController {
   public function check_authorised() {
     if($this-&gt;current_user) return $this-&gt;current_user-&gt;access($this-&gt;module_name, 'view');
 		Session::add_message($this-&gt;unauthorised_message);
+		Session::set('pre_login_referrer', $_SERVER['REQUEST_URI']);
 		$this-&gt;redirect_to($this-&gt;unauthorised_redirect);
   }
 
@@ -157,10 +171,10 @@ class CMSAdminComponent extends WaxController {
 	*/
 	public function filter() {
 	  $this-&gt;use_layout=false;
-	  if($_POST['filter']) {
+	  if($filter_val = Request::param('filter')) {
   		$conditions = &quot;&quot;;
   	  if($this-&gt;filter_columns) {
-  	    foreach($this-&gt;filter_columns as $filter) $conditions .= &quot;OR $filter LIKE '%{$_POST['filter']}%'&quot;;
+  	    foreach($this-&gt;filter_columns as $col) $conditions .= &quot;OR $col LIKE '%&quot;.$filter_val.&quot;%'&quot;;
   	    $conditions = ltrim($conditions, &quot;OR&quot;);
       }
       $this-&gt;model-&gt;filter($conditions);</diff>
      <filename>lib/controller/CMSAdminComponent.php</filename>
    </modified>
    <modified>
      <diff>@@ -175,6 +175,10 @@ class CMSAdminContentController extends AdminComponent {
       $preview-&gt;status = 4;
       $preview-&gt;preview_master_id = $master-&gt;primval;
     	$ret = $preview-&gt;save();
+    	
+    	//temp fix.... images not copying properly 
+    	$preview-&gt;images= $master-&gt;images;
+    	$preview-&gt;categories = $master-&gt;categories;
     }
     return $ret;
 	}
@@ -190,10 +194,14 @@ class CMSAdminContentController extends AdminComponent {
       $preview-&gt;set_attributes($_POST[$preview-&gt;table]);
       $preview-&gt;status = 4;
       $preview-&gt;save();
-  	  foreach($preview-&gt;columns as $col =&gt; $params) if($preview-&gt;$col) $copy_attributes[$col] = $preview-&gt;$col;
+
+			foreach($preview-&gt;columns as $col =&gt; $params) if($preview-&gt;$col || strlen($preview-&gt;$col)) $copy_attributes[$col] = $preview-&gt;$col;
+
   	  $copy_attributes = array_diff_key($copy_attributes,array_flip(array($preview-&gt;primary_key,&quot;master&quot;,&quot;status&quot;))); //take out IDs and status
-	    return $master-&gt;update_attributes($copy_attributes);
-    }else return $master;
+	    $res = $master-&gt;update_attributes($copy_attributes);	    
+    }else $res = $master;
+    $this-&gt;after_save($res);
+    return $res;
 	}
 	/**
 	* the editing function... lets you change all the bits associated with the content record
@@ -246,7 +254,9 @@ class CMSAdminContentController extends AdminComponent {
     }
 
 		//images
-    if(!$this-&gt;attached_images = $this-&gt;model-&gt;images) $this-&gt;attached_images=array();
+    if(count($this-&gt;model-&gt;images)) $this-&gt;attached_images=$this-&gt;model-&gt;images;
+    elseif($this-&gt;model-&gt;master &amp;&amp; $this-&gt;model-&gt;master-&gt;primval &amp;&amp; $this-&gt;model-&gt;master-&gt;images &amp;&amp; $this-&gt;model-&gt;master-&gt;images-&gt;count()) $this-&gt;attached_images=$this-&gt;model-&gt;master-&gt;images;
+    else $this-&gt;attached_images = array();
     
 		//categories assocaited
 		if(!$this-&gt;attached_categories = $this-&gt;model-&gt;categories) $this-&gt;attached_categories= array();
@@ -338,6 +348,7 @@ class CMSAdminContentController extends AdminComponent {
 	* cool function that autosaves your current document via ajax call
 	**/
 	public function autosave() {
+	  $this-&gt;id = Request::get(&quot;id&quot;);
 	  $this-&gt;use_layout=false;
 	  $this-&gt;use_view=false;
 	  $content = new $this-&gt;model_class(Request::get(&quot;id&quot;));</diff>
      <filename>lib/controller/CMSAdminContentController.php</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,8 @@ class CMSAdminHomeController extends AdminComponent {
 		  $log-&gt;save();
 		  $perm_model = new CmsPermission;
 		  if(!count($perm_model-&gt;all())) return '/admin/home/convert_to_v3';
-		  elseif($this-&gt;authorised_redirect) return $this-&gt;authorised_redirect;		  
+		  elseif(Session::get('pre_login_referrer')) return Session::get('pre_login_referrer');
+		  elseif($this-&gt;authorised_redirect) return $this-&gt;authorised_redirect;
 			else return 'index';
 		}
 		else {</diff>
      <filename>lib/controller/CMSAdminHomeController.php</filename>
    </modified>
    <modified>
      <diff>@@ -65,26 +65,19 @@ class CMSAdminSectionController extends AdminComponent {
   }
 	
 	/**
-	* Ajax Filter list view
-	*/
-	public function filter() {
-	  $this-&gt;use_layout=false;
-	  $this-&gt;use_view=&quot;_list&quot;;
-	  if($fil = Request::post('filter')) {
-  		$conditions = &quot;&quot;;
-  	  if($this-&gt;filter_columns) {
-  	    foreach($this-&gt;filter_columns as $filter) {
-  	      $conditions .= &quot;OR $filter LIKE ?&quot;;
-  	      $params[]='%'.$fil.'%';
-  	    }
-  	    $conditions = ltrim($conditions, &quot;OR&quot;);
-      }
-      $this-&gt;model-&gt;filter($conditions, $params);
-	  }
-	  $this-&gt;all_rows = $this-&gt;model-&gt;order($this-&gt;get_order())-&gt;limit($this-&gt;list_limit)-&gt;all();
+	 * ajax filter function - takes the incoming string, matches against columns 
+	 * and outputs view of the matching data
+	 */	
+	public function filters() {
+	  $this-&gt;use_layout = false;
+	  $sect = new CmsSection();
+	  if($filter = Request::param('filter')) $sect-&gt;filter(&quot;title&quot;,'%'.$filter.'%', &quot;LIKE&quot;);
+  	$this-&gt;all_sections = $sect-&gt;tree();
+  	$this-&gt;use_view = &quot;_section_list&quot;;
+  	$this-&gt;all_sections_partial = $this-&gt;render_partial(&quot;section_list&quot;);
 	}
 
 
 }
 
-?&gt;
\ No newline at end of file
+?&gt;</diff>
      <filename>lib/controller/CMSAdminSectionController.php</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,7 @@ class CMSAdminUserController extends AdminComponent {
   );
   public $filter_columns = array(&quot;username&quot;, &quot;email&quot;);
 	public $order_by_columns = array(&quot;username&quot;,&quot;email&quot;);
+	public $default_order = &quot;username&quot;;
 	
 	public $permissions = array(&quot;create&quot;,&quot;edit&quot;,&quot;delete&quot;,&quot;admin&quot;);
 	
@@ -51,7 +52,7 @@ class CMSAdminUserController extends AdminComponent {
     
       $this-&gt;all_permissions = new WaxRecordSet(new CmsPermission, $this-&gt;all_permissions);
       $this-&gt;all_users = new $this-&gt;model_class;
-      $this-&gt;all_users = $this-&gt;all_users-&gt;filter(&quot;id&quot;,$this-&gt;model-&gt;primval,&quot;!=&quot;)-&gt;all();
+      $this-&gt;all_users = $this-&gt;all_users-&gt;filter(&quot;id&quot;,$this-&gt;model-&gt;primval,&quot;!=&quot;)-&gt;order(&quot;username&quot;)-&gt;all();
       
       $this-&gt;exisiting_modules_partial = $this-&gt;render_partial(&quot;list_modules&quot;);
   		$this-&gt;list_modules_partial = $this-&gt;render_partial(&quot;module_list&quot;);		
@@ -92,7 +93,10 @@ class CMSAdminUserController extends AdminComponent {
 	
 	public function add_permission(){
 	  $this-&gt;model = new $this-&gt;model_class(WaxUrl::get(&quot;id&quot;));	  
-    list($prefix, $class, $operation) = explode(&quot;_&quot;,Request::param('tagid'));
+    $exp = explode(&quot;_&quot;,Request::param('tagid'));
+    $prefix = $exp[0];
+    $class = $exp[1];
+    $operation = str_ireplace($prefix.&quot;_&quot;.$class.&quot;_&quot;,&quot;&quot;, Request::param('tagid'));
     if(!$this-&gt;model-&gt;access($class, $operation)){
       $permission = new CmsPermission;
       $permission-&gt;class = $class;
@@ -119,7 +123,7 @@ class CMSAdminUserController extends AdminComponent {
 	  $this-&gt;model = new $this-&gt;model_class(WaxUrl::get(&quot;id&quot;));
 	  $copy_from = new $this-&gt;model_class(WaxUrl::get(&quot;copy_from&quot;));
 	  if(!$copy_from-&gt;primval) return;
-	  $this-&gt;model-&gt;permissions-&gt;delete();
+	  foreach($this-&gt;model-&gt;permissions as $perm) $perm-&gt;delete();
 	  foreach($copy_from-&gt;permissions as $old_perm){
       $permission = new CmsPermission;
       $permission-&gt;class = $old_perm-&gt;class;</diff>
      <filename>lib/controller/CMSAdminUserController.php</filename>
    </modified>
    <modified>
      <diff>@@ -51,7 +51,7 @@ class CmsTextFilter  {
   }
   
   static public function strip_attributes($text) {
-		$text = preg_replace(&quot;/&lt;(table|td|tr|tbody|thead|tfoot)\s+([^&gt;]*)(border|bgcolor|background|style)+([^&gt;]*)&gt;/i&quot;, &quot;&lt;$1 $2 $3\&gt;&quot;, $text);
+		$text = preg_replace(&quot;/&lt;(table|td|tr|tbody|thead|tfoot|p)\s+([^&gt;]*)(border|bgcolor|background|style)+([^&gt;]*)&gt;/i&quot;, &quot;&lt;$1 $2 $3\&gt;&quot;, $text);
     return preg_replace(&quot;/&lt;(p|h1|h2|h3|h4|h5|h6|ul|ol|li|span|font)\s+([^&gt;]*)( class=\&quot;.*?\&quot;)([^&gt;]*)&gt;/i&quot;, &quot;&lt;$1$3&gt;&quot;, $text);
   }
   
@@ -97,7 +97,7 @@ class CmsTextFilter  {
   
   static public function ampersand_hook($text) {
     $amp_finder = &quot;/(\s|&amp;nbsp;)(&amp;|&amp;amp;|&amp;\#38;)(\s|&amp;nbsp;)/&quot;;
-    return preg_replace($amp_finder, '\\1&lt;span class=&quot;amp&quot;&gt;&amp;amp;&lt;/span&gt;\\3', $text);
+    return preg_replace($amp_finder, '\\1&amp;amp;\\3', $text);
   }
   
   static public function nice_quotes($text) {
@@ -245,11 +245,12 @@ class CmsTextFilter  {
   static public function inline_images($text) {
     $matches=array();
     preg_match_all(&quot;/&lt;img([^&gt;]*class=\&quot;inline_image[^&gt;]*)&gt;/&quot;, $text, $matches, PREG_SET_ORDER);
-
     foreach($matches as $match) {      
-      preg_match(&quot;/width=\&quot;([0-9]*)\&quot;/&quot;, $match[0], $width);
-      preg_match(&quot;/WIDTH:\s*([0-9]*)/&quot;, $match[0], $width);
+      if(!preg_match(&quot;/width=\&quot;([0-9]*)\&quot;/i&quot;, $match[0], $width)) {
+        preg_match(&quot;/WIDTH:\s*([0-9]*)/i&quot;, $match[0], $width);
+      }        
       $width = $width[1];
+      
       if($width) {
         $new_img = preg_replace(&quot;/(.*show_image\/[0-9]*\/)([0-9]*)(.*)/&quot;, &quot;\${1}$width\\3&quot;, $match[0]);
         $new_img = preg_replace(&quot;/width=\&quot;[0-9]*\&quot;/&quot;, &quot;&quot;, $new_img);</diff>
      <filename>lib/filters/CmsTextFilter.php</filename>
    </modified>
    <modified>
      <diff>@@ -26,8 +26,8 @@ class Campaign extends CampaignMonitorModel {
 		$this-&gt;define(&quot;FromEmail&quot;, &quot;EmailField&quot;, array('maxlength'=&gt;255, 'required'=&gt;true) );
 		$this-&gt;define(&quot;ConfirmationEmail&quot;,&quot;EmailField&quot;, array('maxlength'=&gt;255, 'required'=&gt;true) );
 		$this-&gt;define(&quot;ReplyTo&quot;, &quot;CharField&quot;, array('maxlength'=&gt;255, 'required'=&gt;true) );		
-		$this-&gt;define(&quot;HtmlUrl&quot;, &quot;TextField&quot;, array('maxlength'=&gt;255, 'required'=&gt;true) );				
-		$this-&gt;define(&quot;TextUrl&quot;, &quot;TextField&quot;, array('maxlength'=&gt;255, 'required'=&gt;true) );		
+		$this-&gt;define(&quot;HtmlUrl&quot;, &quot;TextField&quot;, array('required'=&gt;true) );				
+		$this-&gt;define(&quot;TextUrl&quot;, &quot;TextField&quot;, array('required'=&gt;true) );		
 		$this-&gt;define(&quot;SendDate&quot;, &quot;DateTimeField&quot;);				
 		$this-&gt;define(&quot;SubscriberListIDs&quot;, &quot;TextField&quot;);
 		$this-&gt;define(&quot;ListSegments&quot;, &quot;TextField&quot;);		</diff>
      <filename>lib/model/Campaign.php</filename>
    </modified>
    <modified>
      <diff>@@ -36,6 +36,24 @@ class CmsComment extends WaxModel {
     $this-&gt;flag_spam();
   }
 	
+	public function after_insert(){
+	  if($email_config = Config::get(&quot;notifiers&quot;)) {
+		
+	  	if($this-&gt;status == 0 || $this-&gt;status == 2){
+  			$verification_email = new WildfireNotifier;
+  			$verification_email-&gt;add_to_address($email_config[&quot;comment_email_to&quot;]);
+			
+  			$data[&quot;id&quot;] = $this-&gt;id;
+  			$data[&quot;author_name&quot;] = $this-&gt;author_name;
+  			$data[&quot;author_email&quot;] = $this-&gt;author_email;
+  			$data[&quot;comment&quot;] = $this-&gt;comment;
+  			$data[&quot;attached_to&quot;] = $this-&gt;attached_to;
+			
+  			$verification_email-&gt;send_comment_approval($data);
+  		}
+		}
+	}
+	
   public function article() {
     return $this-&gt;attached_to;
   }
@@ -75,6 +93,7 @@ class CmsComment extends WaxModel {
   }
   
   protected function flag_spam() {
+    $comment_settings = Config::get(&quot;comments&quot;);
     $text = $this-&gt;comment;
     $total_matches = 0;
     $trash = array();
@@ -99,7 +118,10 @@ class CmsComment extends WaxModel {
     if(strlen($text &gt; 1000)) $total_matches +=2;
     if(strlen($text &lt; 13)) $total_matches +=2;
     if($total_matches &gt;= 4) $this-&gt;status=&quot;2&quot;;
-    elseif(!$this-&gt;status) $this-&gt;status=&quot;1&quot;;
+    else{
+      if($comment_settings['default_unapproved']) $this-&gt;status = &quot;0&quot;;
+      else $this-&gt;status = &quot;1&quot;;
+    }
   }
   
 	/*************** OLD FUNCTIONS - TO BE REMOVED - SOME ALREADY RETURN FALSE ********************/</diff>
      <filename>lib/model/CmsComment.php</filename>
    </modified>
    <modified>
      <diff>@@ -126,8 +126,9 @@ class CmsContent extends WaxModel {
 		if($this-&gt;primval) $model-&gt;filter($this-&gt;primary_key.' &lt;&gt; '.$this-&gt;primval);
 		$count = 0;
 		while($model-&gt;filter(array('url'=&gt;$test_url, 'cms_section_id'=&gt;$this-&gt;cms_section_id))-&gt;filter('status &lt;&gt; 4')-&gt;first() ){
-			if($count == 0) $test_url = $original_url . '-'.date(&quot;Y-m-d&quot;);
-			elseif($count == 1) $test_url = $original_url . '-'.$this-&gt;primval;
+			if($count == 0) $test_url = $original_url . '-'.$this-&gt;published;
+			elseif($count == 1) $test_url = $original_url . '-'.date(&quot;Y-m-d&quot;);
+			elseif(($count == 2) &amp;&amp; $this-&gt;primval()) $test_url = $original_url . '-'.$this-&gt;primval();
 			else $test_url = $original_url . '-'.mt_rand(0,99);
 			$count++;
 		} </diff>
      <filename>lib/model/CmsContent.php</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,10 @@ class WildfireLog extends WaxModel {
   
     
   public function setup() {
+    $this-&gt;define(&quot;language&quot;, &quot;CharField&quot;);
+    $this-&gt;define(&quot;page&quot;, &quot;CharField&quot;);
     $this-&gt;define(&quot;action&quot;, &quot;CharField&quot;);
+    $this-&gt;define(&quot;controller&quot;, &quot;CharField&quot;);
     $this-&gt;define(&quot;user&quot;, &quot;ForeignKey&quot;, array(&quot;target_model&quot;=&gt;&quot;WildfireUser&quot;));
     $this-&gt;define(&quot;time&quot;, &quot;DateTimeField&quot;);
   }
@@ -17,6 +20,10 @@ class WildfireLog extends WaxModel {
 		return date('jS F Y @ H:i', strtotime($this-&gt;time));
 	}
 	
+	public function action_description() {
+	  return $this-&gt;controller.&quot; &quot;.$this-&gt;action.&quot; &quot;.$this-&gt;page;
+	}
+	
 }
 
 ?&gt;
\ No newline at end of file</diff>
      <filename>lib/model/WildfireLog.php</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-Subproject commit 9effa475e2e8a7af3c4ba6ff3ce58fb888a36160
+Subproject commit bda4de36d61b979ad402c3b49438e58a24e63119</diff>
      <filename>resources/public/javascripts/jqwysi</filename>
    </modified>
    <modified>
      <diff>@@ -110,7 +110,7 @@ td, th {
 p{
 	margin:10px 0px;
 }
-
+.dropped_image p, .drag_image p{margin:1px 0;text-align:center;}
 /* HEADER */
 
 #main-navigation-container{
@@ -397,7 +397,7 @@ h4{
   margin:0 10px 10px 0;
   padding:5px 6px;
   width:140px;
-  height:140px;
+  height:150px;
   border:1px solid #ebebeb;
   text-align:center;
   font-size:85%;</diff>
      <filename>resources/public/stylesheets/cms/cms-stylesheet.css</filename>
    </modified>
    <modified>
      <diff>@@ -521,7 +521,7 @@ td, th {
 p{
 	margin:10px 0px;
 }
-
+.dropped_image p, .drag_image p{margin:1px 0;text-align:center;}
 /* HEADER */
 
 #main-navigation-container{
@@ -808,7 +808,7 @@ h4{
   margin:0 10px 10px 0;
   padding:5px 6px;
   width:140px;
-  height:140px;
+  height:150px;
   border:1px solid #ebebeb;
   text-align:center;
   font-size:85%;</diff>
      <filename>resources/public/stylesheets/cms/wildfire.combined.css</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,7 @@
 	  &lt;div class=&quot;image_place&quot;&gt;
 	    &lt;img src=&quot;&lt;?=$image-&gt;permalink(135)?&gt;&quot; title=&quot;&lt;?=$image-&gt;description?&gt;&quot; /&gt;
 	  &lt;/div&gt;
+	  &lt;p&gt;&lt;?=$image-&gt;filename?&gt;&lt;/p&gt;
 	  &lt;div class=&quot;remove_image&quot; id=&quot;delete_image_&lt;?=$image-&gt;id?&gt;&quot;&gt;
 	    &lt;a href=&quot;#&quot;&gt;Remove&lt;/a&gt;
 	  &lt;/div&gt;</diff>
      <filename>view/CMSAdminContentController/_content_images.html</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,7 @@
         &lt;div class=&quot;image_place&quot;&gt;
           &lt;img src=&quot;&lt;?=$attached_images[$i]-&gt;permalink(135)?&gt;&quot; title=&quot;&lt;?=$attached_images[$i]-&gt;description?&gt;&quot; /&gt;
         &lt;/div&gt;
+        &lt;p&gt;&lt;small&gt;&lt;?=$attached_images[$i]-&gt;filename?&gt;&lt;/small&gt;&lt;/p&gt;
         &lt;div class=&quot;remove_image&quot; id=&quot;delete_image_&lt;?=$id?&gt;&quot;&gt;
           &lt;a href=&quot;#&quot;&gt;Remove&lt;/a&gt;
         &lt;/div&gt;</diff>
      <filename>view/CMSAdminContentController/attached_images.html</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,7 @@
       &lt;div class=&quot;image_place&quot;&gt;
         &lt;img src=&quot;&lt;?=$image-&gt;permalink(135)?&gt;&quot; title=&quot;&lt;?=$image-&gt;filename?&gt;&quot; alt=&quot;&lt;?=$image-&gt;description?&gt;&quot;/&gt;
       &lt;/div&gt;
+      &lt;p&gt;&lt;?=$image-&gt;filename?&gt;&lt;/p&gt;
       &lt;div class=&quot;add_image&quot; id=&quot;add_image_&lt;?=$image-&gt;id?&gt;&quot;&gt;
 			  &lt;a href=&quot;#&quot;&gt;Add&lt;/a&gt;
 			&lt;/div&gt;</diff>
      <filename>view/CMSAdminFileController/_list_all_images.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
  
-&lt;script type=&quot;text/javascript&quot; src=&quot;/javascripts/build/jquery.126.files.min.js&quot;&gt;&lt;/script&gt;
+&lt;script type=&quot;text/javascript&quot; src=&quot;/javascripts/build/wildfire_filesystem.min.js&quot;&gt;&lt;/script&gt;
  
  
   &lt;div id=&quot;advanced_uploader&quot; class=&quot;clearfix wf_dialog&quot;&gt;</diff>
      <filename>view/CMSAdminFileController/upload.html</filename>
    </modified>
    <modified>
      <diff>@@ -20,10 +20,11 @@
   google.load('jqueryui', '1.7');
   &lt;/script&gt;
   &lt;?else:?&gt;
-  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/build/jquery.1.3.2.js&quot;&gt;&lt;/script&gt;
+  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/jquery/jquery.1.3.2.js&quot;&gt;&lt;/script&gt;
+  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/jquery/jquery-ui-1.7.1.custom.min.js&quot;&gt;&lt;/script&gt;
   &lt;?endif?&gt;
   
-  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/build/jquery.132.combined.js&quot;&gt;&lt;/script&gt;	   
+  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/build/wildfire_cms.combined.min.js&quot;&gt;&lt;/script&gt;	   
 	&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/jqwysi/build/jquery.wymeditor.min.js&quot;&gt;&lt;/script&gt;	 
 	&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/jqwysi/src/wymeditor/plugins/wildfire/jquery.wymeditor.wildfire.js&quot;&gt;&lt;/script&gt;	 
 	&lt;script src=&quot;/javascripts/cms/cms_application.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</diff>
      <filename>view/layouts/admin.html</filename>
    </modified>
    <modified>
      <diff>@@ -4,10 +4,27 @@
 &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
 &lt;head&gt;
 	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;
-	&lt;?=javascript_asset(&quot;build&quot;, &quot;jquery.126.files.min&quot;)?&gt;
+	&lt;?if(ENV == &quot;production&quot;):?&gt;
+  &lt;script src='http://www.google.com/jsapi?'  type='text/javascript'&gt;&lt;/script&gt;  	
+  &lt;script type='text/javascript'&gt;                      
+  google.load('jquery', '1.3.2');
+  google.load('jqueryui', '1.7');
+  &lt;/script&gt;
+  &lt;?else:?&gt;
+  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/jquery/jquery.1.2.6.js&quot;&gt;&lt;/script&gt;
+  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/jquery/jquery-ui-1.7.1.custom.min.js&quot;&gt;&lt;/script&gt;
+  &lt;?endif?&gt;
+	
+  &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;/javascripts/build/wildfire_filesystem.min.js&quot;&gt;&lt;/script&gt;	  
+  &lt;link href=&quot;/stylesheets/cms/wildfire.combined.css&quot; media=&quot;screen&quot; rel=&quot;Stylesheet&quot; type=&quot;text/css&quot; /&gt;
+	&lt;link href=&quot;/stylesheets/cms/cms-overrides.css&quot; media=&quot;screen&quot; rel=&quot;Stylesheet&quot; type=&quot;text/css&quot; /&gt;
+	&lt;!--[if lt IE 7]&gt;
+	&lt;link href=&quot;/stylesheets/cms/ie_cms.css&quot; media=&quot;screen&quot; rel=&quot;Stylesheet&quot; type=&quot;text/css&quot; /&gt;
+	&lt;![endif]--&gt;
+	&lt;!--[if IE 7]&gt;
+  &lt;link href=&quot;/stylesheets/cms/ie7_cms.css&quot; media=&quot;screen&quot; rel=&quot;Stylesheet&quot; type=&quot;text/css&quot; /&gt;
+	&lt;![endif]--&gt;
 
-	&lt;?=stylesheet_asset('cms','wildfire.combined.min')?&gt;
-	&lt;?=stylesheet_asset('cms','cms-overrides')?&gt;
 	&lt;title&gt;Content Management System&lt;/title&gt;
 &lt;/head&gt;
 
@@ -16,7 +33,7 @@
 		&lt;div id=&quot;cms_logo&quot;&gt;&lt;a href=&quot;/admin/home&quot;&gt;&lt;img src=&quot;/images/cms/cms_wildfire-logo.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
 		&lt;div id=&quot;logout_button&quot;&gt;&lt;a href=&quot;/admin/home/logout&quot; id=&quot;logout&quot;&gt;&lt;img src=&quot;/images/cms/logout_button.png&quot;&gt;&lt;/a&gt;&lt;/div&gt;
 		&lt;ul id=&quot;primary-navigation&quot; class=&quot;clearfix&quot;&gt;
-		  &lt;?foreach($all_modules as $name=&gt;$values):?&gt;
+		  &lt;?foreach($menu_modules as $name=&gt;$values):?&gt;
 		    &lt;li&lt;?if($name == $module_name) echo &quot; class='active'&quot;;?&gt;&gt;
 		      &lt;a href=&quot;&lt;?=$values['link']?&gt;&quot;&gt;
 		        &lt;?=$values['display_name']?&gt;</diff>
      <filename>view/layouts/file.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;div id=&quot;link_dialog&quot;&gt;
   &lt;h3&gt;1. Enter an internet url&lt;/h3&gt;
-  &lt;p&gt;&lt;a href=&quot;javascript:void(0)&quot; id=&quot;insert_web_url&quot;&gt;Click Here&lt;/a&gt;&lt;/p&gt;
+  &lt;p&gt;&lt;a href=&quot;javascript:void(0)&quot; class=&quot;insert_web_url&quot;&gt;Click Here&lt;/a&gt;&lt;/p&gt;
   &lt;?if(count($all_links)):?&gt;
   &lt;h3&gt;2. Link to one of your files&lt;/h3&gt;
     &lt;p&gt;
@@ -9,7 +9,7 @@
         &lt;?foreach($all_links as $link):?&gt;
           &lt;option value=&quot;&lt;?=$link-&gt;url?&gt;&quot;&gt;&lt;?=$link-&gt;filename?&gt;&lt;/option&gt;
         &lt;?endforeach?&gt;
-      &lt;/select&gt; &lt;button id=&quot;insert_local_url&quot;&gt;Insert&lt;/button&gt;
+      &lt;/select&gt; &lt;button class=&quot;insert_local_url&quot;&gt;Insert&lt;/button&gt;
     &lt;/p&gt;
   &lt;?endif?&gt;
 &lt;/div&gt;
\ No newline at end of file</diff>
      <filename>view/shared/_apply_links.html</filename>
    </modified>
    <modified>
      <diff>@@ -19,6 +19,7 @@
                 &lt;div class=&quot;image_place&quot;&gt;
                   &lt;img src=&quot;&lt;?=$attached_images[$i]-&gt;permalink(135)?&gt;&quot; title=&quot;&lt;?=$attached_images[$i]-&gt;filename?&gt;&quot; alt=&quot;&lt;?=$attached_images[$i]-&gt;description?&gt;&quot;/&gt;
                 &lt;/div&gt;
+                &lt;p&gt;&lt;?=$attached_images[$i]-&gt;filename?&gt;&lt;/p&gt;
                 &lt;div class=&quot;remove_image&quot; id=&quot;delete_image_&lt;?=$id?&gt;&quot;&gt;
                   &lt;a href=&quot;#&quot;&gt;Remove&lt;/a&gt;
                 &lt;/div&gt;</diff>
      <filename>view/shared/_page_images.html</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>resources/public/javascripts/build/jquery.126.files.js</filename>
    </removed>
    <removed>
      <filename>resources/public/javascripts/build/jquery.126.files.min.js</filename>
    </removed>
    <removed>
      <filename>resources/public/javascripts/build/jquery.132.combined.js</filename>
    </removed>
    <removed>
      <filename>resources/public/javascripts/build/jquery.132.combined.min.js</filename>
    </removed>
    <removed>
      <filename>resources/public/stylesheets/cms/wildfire.combined.min.css</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>5ce06d9d91216781ae14bf790ce9df2f9d6067fd</id>
    </parent>
    <parent>
      <id>ec3f922a4a2e8b6f2710c6318a035b8b361051cd</id>
    </parent>
  </parents>
  <author>
    <name>Ross Riley</name>
    <email>ross@oneblackbear.com</email>
  </author>
  <url>http://github.com/phpwax/wildfire/commit/14a94d262a89f8b9f479c45d30679babe4e99d6e</url>
  <id>14a94d262a89f8b9f479c45d30679babe4e99d6e</id>
  <committed-date>2009-10-06T08:31:46-07:00</committed-date>
  <authored-date>2009-10-06T08:31:46-07:00</authored-date>
  <message>Merge branch 'v3' of git@github.com:phpwax/wildfire into v3

Conflicts:

	lib/controller/CMSAdminSectionController.php
	resources/public/javascripts/build/jquery.132.combined.js
	resources/public/javascripts/build/jquery.132.combined.min.js
	resources/public/stylesheets/cms/wildfire.combined.min.css</message>
  <tree>37b0b153dbba2e4795a0486b4a81f70a1475f403</tree>
  <committer>
    <name>Ross Riley</name>
    <email>ross@oneblackbear.com</email>
  </committer>
</commit>
