Changeset 491899
- Timestamp:
- 01/19/2012 01:11:36 AM (14 years ago)
- Location:
- amazon-s3-uploads/trunk
- Files:
-
- 1 deleted
- 2 edited
-
asssu-options.php (modified) (2 diffs)
-
asssu.php (modified) (1 diff)
-
s3-php5-curl (deleted)
Legend:
- Unmodified
- Added
- Removed
-
amazon-s3-uploads/trunk/asssu-options.php
r477750 r491899 61 61 <select name="asssu_cron_interval" id="asssu_cron_interval"> 62 62 <?php 63 $selected_value = get_option('asssu_cron_interval', 300);63 $selected_value = intval(get_option('asssu_cron_interval', 300)); 64 64 for ($counter = 300; $counter <= 1800; $counter = $counter + 300): 65 65 $selected = $selected_value === $counter ? ' selected="selected"' : ''; … … 76 76 <select name="asssu_cron_limit" id="asssu_cron_limit"> 77 77 <?php 78 $selected_value = get_option('asssu_cron_limit', 20);78 $selected_value = intval(get_option('asssu_cron_limit', 20)); 79 79 for ($counter = 10; $counter <= 100; $counter = $counter + 10): 80 80 $selected = $selected_value === $counter ? ' selected="selected"' : ''; 81 print "\n\t".'<option value="'.$counter.'"'.$selected.'>'.$counter.' seconds</option>';81 print "\n\t".'<option value="'.$counter.'"'.$selected.'>'.$counter.'</option>'; 82 82 endfor; 83 83 ?> -
amazon-s3-uploads/trunk/asssu.php
r477750 r491899 108 108 function check_htaccess() { 109 109 $amazon_path = 'http://'.$this->bucket_name.'.s3.amazonaws.com/'; 110 if (!empty($this->bucket_subdir)) 110 $amazon_path_ssl = 'https://'.$this->bucket_name.'.s3.amazonaws.com/'; 111 if (!empty($this->bucket_subdir)) { 111 112 $amazon_path .= $this->bucket_subdir.'/'; 113 $amazon_path_ssl .= $this->bucket_subdir.'/'; 114 } 112 115 $htaccess_file = $this->upload_basedir.DIRECTORY_SEPARATOR.'.htaccess'; 113 116 $htaccess_contents = 'RewriteEngine On 117 RewriteCond %{HTTPS} off 114 118 RewriteCond %{REQUEST_FILENAME} !-f 115 119 RewriteCond %{REQUEST_FILENAME} !-d 116 RewriteRule ^(.*)$ '.$amazon_path.'$1 [QSA,L]'; 120 RewriteRule ^(.*)$ '.$amazon_path.'$1 [QSA,L] 121 RewriteCond %{HTTPS} on 122 RewriteCond %{REQUEST_FILENAME} !-f 123 RewriteCond %{REQUEST_FILENAME} !-d 124 RewriteRule ^(.*)$ '.$amazon_path_ssl.'$1 [QSA,L]'; 117 125 if (is_file($htaccess_file)) 118 126 $htaccess = file_get_contents($htaccess_file);
Note: See TracChangeset
for help on using the changeset viewer.