Revision 1745
Added by Dietmar about 12 years ago
upgrade-script.php | ||
---|---|---|
387 | 387 |
/********************************************************** |
388 | 388 |
* - Adding field sec_anchor to settings table |
389 | 389 |
*/ |
390 |
echo "<br />Adding sec_anchor to settings table"; |
|
390 |
echo "<br />Adding/updating sec_anchor to settings table";
|
|
391 | 391 |
$cfg = array( |
392 | 392 |
'sec_anchor' => defined('SEC_ANCHOR') ? SEC_ANCHOR : 'wb_' |
393 | 393 |
); |
... | ... | |
398 | 398 |
/********************************************************** |
399 | 399 |
* - Adding redirect timer to settings table |
400 | 400 |
*/ |
401 |
echo "Adding redirect timer to settings table"; |
|
401 |
echo "Adding/updating redirect timer to settings table";
|
|
402 | 402 |
$cfg = array( |
403 | 403 |
'redirect_timer' => defined('REDIRECT_TIMER') ? REDIRECT_TIMER : '1500' |
404 | 404 |
); |
... | ... | |
407 | 407 |
/********************************************************** |
408 | 408 |
* - Adding rename_files_on_upload to settings table |
409 | 409 |
*/ |
410 |
echo "Updating rename_files_on_upload to settings table"; |
|
410 |
echo "Adding/Updating rename_files_on_upload to settings table";
|
|
411 | 411 |
$cfg = array( |
412 | 412 |
'rename_files_on_upload' => (defined('RENAME_FILES_ON_UPLOAD') ? RENAME_FILES_ON_UPLOAD : 'ph.*?,cgi,pl,pm,exe,com,bat,pif,cmd,src,asp,aspx,js') |
413 | 413 |
); |
... | ... | |
416 | 416 |
/********************************************************** |
417 | 417 |
* - Adding mediasettings to settings table |
418 | 418 |
*/ |
419 |
echo "Adding mediasettings to settings table"; |
|
419 |
echo "Adding/updating mediasettings to settings table";
|
|
420 | 420 |
$cfg = array( |
421 | 421 |
'mediasettings' => (defined('MEDIASETTINGS') ? MEDIASETTINGS : ''), |
422 | 422 |
); |
... | ... | |
426 | 426 |
/********************************************************** |
427 | 427 |
* - Adding fingerprint_with_ip_octets to settings table |
428 | 428 |
*/ |
429 |
echo "Adding fingerprint_with_ip_octets to settings table"; |
|
429 |
echo "Adding/updating fingerprint_with_ip_octets to settings table";
|
|
430 | 430 |
$cfg = array( |
431 | 431 |
'fingerprint_with_ip_octets' => (defined('FINGERPRINT_WITH_IP_OCTETS') ? FINGERPRINT_WITH_IP_OCTETS : '2'), |
432 | 432 |
'secure_form_module' => (defined('SECURE_FORM_MODULE') ? SECURE_FORM_MODULE : '') |
... | ... | |
437 | 437 |
/********************************************************** |
438 | 438 |
* - Adding page_icon_dir to settings table |
439 | 439 |
*/ |
440 |
echo "Adding page_icon_dir to settings table"; |
|
440 |
echo "Adding/updating page_icon_dir to settings table";
|
|
441 | 441 |
$cfg = array( |
442 | 442 |
'page_extended' => (defined('PAGE_ICON_DIR') ? PAGE_ICON_DIR : '/templates/*/title_images'), |
443 | 443 |
); |
... | ... | |
446 | 446 |
/********************************************************** |
447 | 447 |
* - Adding page_extended to settings table |
448 | 448 |
*/ |
449 |
echo "Adding ppage_extended to settings table"; |
|
449 |
echo "Adding/updating ppage_extended to settings table";
|
|
450 | 450 |
$cfg = array( |
451 | 451 |
'page_extended' => (defined('PAGE_EXTENDED') ? PAGE_EXTENDED : 'true'), |
452 | 452 |
); |
... | ... | |
454 | 454 |
echo (db_update_key_value( 'settings', $cfg ) ? " $OK<br />" : " $FAIL!<br />"); |
455 | 455 |
|
456 | 456 |
/********************************************************** |
457 |
* - Adding sec_anchor to settings table |
|
458 |
*/ |
|
459 |
echo "Adding/updating sec_anchor to settings table"; |
|
460 |
$cfg = array( |
|
461 |
'sec_anchor' => (defined('SEC_ANCHOR') && (SEC_ANCHOR=='') ? 'section_' : SEC_ANCHOR) |
|
462 |
); |
|
463 |
|
|
464 |
echo (db_update_key_value( 'settings', $cfg ) ? " $OK<br />" : " $FAIL!<br />"); |
|
465 |
/********************************************************** |
|
457 | 466 |
* - Adding dev_infos to settings table |
458 | 467 |
*/ |
459 |
echo "Adding dev_infos to settings table"; |
|
468 |
echo "Adding/updating dev_infos to settings table";
|
|
460 | 469 |
$cfg = array( |
461 | 470 |
'dev_infos' => (defined('DEV_INFOS') ? DEV_INFOS : 'false') |
462 | 471 |
); |
Also available in: Unified diff
! add div container in page_content for each sections,
! update droplets SectionPicker, ShowWysiwyg and ShowRandomWysiwyg
! put sec_anchor in this div, sec_anchor fixed in all found files
sec_anchor default now set to "section_",
sec_anchor can't be empty for future developement