Project

General

Profile

« Previous | Next » 

Revision 100

Added by stefan about 19 years ago

Fixed problems with settings section in admin.

View differences:

trunk/wb/admin/settings/save.php
36 36
	$admin = new admin('Settings', 'settings_advanced');
37 37
}
38 38

  
39
//print_r($_POST);
40

  
39 41
// Work-out file mode
40 42
if($advanced == '') {
41 43
	// Check if should be set to 777 or left alone
......
134 136
			$value=$file_mode;
135 137
			break;
136 138
	}
139
	//echo $setting_name.':'.$value."<br />";
137 140
	$database->query("UPDATE ".TABLE_PREFIX."settings SET value = '$value' WHERE name = '$setting_name'");
138 141
}
139 142

  
......
155 158
	exit();
156 159
}
157 160

  
161
$admin->print_success($MESSAGE['SETTINGS']['SAVED'], ADMIN_URL.'/settings/index.php'.$advanced);
158 162
$admin->print_footer();
159 163

  
160 164
?>
trunk/wb/admin/settings/index.php
107 107
}
108 108

  
109 109
$template->set_var(array(	
110
									'PAGES_DIRECTORY' => PAGES_DIRECTORY,
111
									'MEDIA_DIRECTORY' => MEDIA_DIRECTORY,
110 112
									'PAGE_EXTENSION' => PAGE_EXTENSION,
111 113
									'PAGE_SPACER' => PAGE_SPACER,
112 114
									'WB_PATH' => WB_PATH,
......
500 502
								'TEXT_LOGIN' => $TEXT['LOGIN'],
501 503
								'TEXT_SIGNUP' => $TEXT['SIGNUP'],
502 504
								'TEXT_PHP_ERROR_LEVEL' => $TEXT['PHP_ERROR_LEVEL'],
505
								'TEXT_PAGES_DIRECTORY' => $TEXT['PAGES_DIRECTORY'],
506
								'TEXT_MEDIA_DIRECTORY' => $TEXT['MEDIA_DIRECTORY'],
503 507
								'TEXT_PAGE_EXTENSION' => $TEXT['PAGE_EXTENSION'],
504 508
								'TEXT_PAGE_SPACER' => $TEXT['PAGE_SPACER'],
505 509
								'TEXT_RENAME_FILES_ON_UPLOAD' => $TEXT['RENAME_FILES_ON_UPLOAD'],
trunk/wb/admin/settings/template.html
537 537
	</td>
538 538
</tr>
539 539
<tr class="advanced">
540
	<td class="setting_name">{TEXT_PAGES_DIRECTORY}:</td>
541
	<td class="setting_value" colspan="2">
542
		<input type="text" name="pages_directory" value="{PAGES_DIRECTORY}" />
543
	</td>
544
</tr>
545
<tr class="advanced">
546
	<td class="setting_name">{TEXT_MEDIA_DIRECTORY}:</td>
547
	<td class="setting_value" colspan="2">
548
		<input type="text" name="media_directory" value="{MEDIA_DIRECTORY}" />
549
	</td>
550
</tr>
551
<tr class="advanced">
540 552
	<td class="setting_name">{TEXT_PAGE_EXTENSION}:</td>
541 553
	<td class="setting_value" colspan="2">
542 554
		<input type="text" name="page_extension" value="{PAGE_EXTENSION}" />

Also available in: Unified diff