Changeset 449
- Timestamp:
- 04/02/07 00:04:30
(1 year ago)
- Author:
- rats
- Message:
- CONFIGS:
- fixed bug in awstats Makefile (Jan Porath)
- ENGINE:
- fixed: variable parsing in uninstal (Jan Porath)
- fixed bug #141: compression for SQL Backup
- fixed bug #138: htaccess status not changed (Jan Porath)
- GUI:
- fixed: bug on language upload
- fixed: protected areas templates (Jan Porath)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r445 |
r449 |
|
| 10 | 10 | | * gui: disable stats-alias in client menu | |
|---|
| 11 | 11 | \_________________________________________________________________/ |
|---|
| | 12 | |
|---|
| | 13 | 2007-04-01 Benedikt Heintel |
|---|
| | 14 | - CONFIGS: |
|---|
| | 15 | * fixed bug in awstats Makefile (Jan Porath) |
|---|
| | 16 | - ENGINE: |
|---|
| | 17 | * fixed: variable parsing in uninstal (Jan Porath) |
|---|
| | 18 | * fixed bug #141: compression for SQL Backup |
|---|
| | 19 | * fixed bug #138: htaccess status not changed (Jan Porath) |
|---|
| | 20 | - GUI: |
|---|
| | 21 | * fixed: bug on language upload |
|---|
| | 22 | * fixed: protected areas templates (Jan Porath) |
|---|
| 12 | 23 | |
|---|
| 13 | 24 | 2007-03-31 Benedikt Heintel |
|---|
| r383 |
r449 |
|
| 4 | 4 | |
|---|
| 5 | 5 | $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/awstats |
|---|
| 6 | | cp -R ./ $(SYSTEM_CONF)/awstats/awstats.vhcs_tpl.conf |
|---|
| | 6 | cp -R ./awstats.vhcs_tpl.conf $(SYSTEM_CONF)/awstats |
|---|
| 7 | 7 | |
|---|
| 8 | 8 | uninstall: |
|---|
| r445 |
r449 |
|
| 30 | 30 | |
|---|
| 31 | 31 | CMD_AWK = /usr/bin/awk |
|---|
| | 32 | |
|---|
| | 33 | CMD_BZIP = /bin/bzip2 |
|---|
| 32 | 34 | |
|---|
| 33 | 35 | CMD_CHOWN = /bin/chown |
|---|
| r440 |
r449 |
|
| 285 | 285 | my $db_backup_file = "$dmn_backup_dir/$db_name.sql"; |
|---|
| 286 | 286 | my $db_backupcmd = "mysqldump --add-drop-table -u\'$dbuser\' -p\'$dbpass\' \'$db_name\' >\'$db_backup_file\'"; |
|---|
| | 287 | my $db_compresscmd = "$main::cfg{'CMD_BZIP'} --force $db_backup_file"; |
|---|
| 287 | 288 | $rs = sys_command($db_backupcmd); |
|---|
| 288 | 289 | |
|---|
| … | … | |
| 299 | 300 | unlink($db_backup_file); |
|---|
| 300 | 301 | } |
|---|
| | 302 | $rs = sys_command($db_compresscmd); |
|---|
| | 303 | return $rs if ($rs != 0); |
|---|
| 301 | 304 | } |
|---|
| 302 | 305 | } |
|---|
| r441 |
r449 |
|
| 465 | 465 | sys_command_rs("a2dissite vhcs2.conf &> /tmp/vhcs2-uninstall-services.log"); |
|---|
| 466 | 466 | |
|---|
| 467 | | $rs = del_file($main::cfg{'APACHE_SITES_DIR'}/vhcs2.conf); |
|---|
| | 467 | $rs = del_file("$main::cfg{'APACHE_SITES_DIR'}/vhcs2.conf"); |
|---|
| 468 | 468 | |
|---|
| 469 | 469 | return $rs if ($rs != 0); |
|---|
| … | … | |
| 471 | 471 | sys_command_rs("a2dissite master.conf &> /tmp/vhcs2-uninstall-services.log"); |
|---|
| 472 | 472 | |
|---|
| 473 | | $rs = del_file($main::cfg{'APACHE_SITES_DIR'}/master.conf); |
|---|
| | 473 | $rs = del_file("$main::cfg{'APACHE_SITES_DIR'}/master.conf"); |
|---|
| 474 | 474 | |
|---|
| 475 | 475 | return $rs if ($rs != 0); |
|---|
| … | … | |
| 477 | 477 | sys_command_rs("a2dismod fastcgi &> /tmp/vhcs2-uninstall-services.log"); |
|---|
| 478 | 478 | |
|---|
| 479 | | $rs = del_file($main::cfg{'APACHE_MODS_DIR'}/fastcgi.conf); |
|---|
| | 479 | $rs = del_file("$main::cfg{'APACHE_MODS_DIR'}/fastcgi.conf"); |
|---|
| 480 | 480 | |
|---|
| 481 | 481 | return $rs if ($rs != 0); |
|---|
| r231 |
r449 |
|
| 535 | 535 | } |
|---|
| 536 | 536 | |
|---|
| | 537 | } else { |
|---|
| | 538 | |
|---|
| | 539 | $sql = "delete from htaccess_users where status = 'delete'"; |
|---|
| | 540 | ($rs, $rdata) = doSQL($sql); |
|---|
| | 541 | |
|---|
| | 542 | $sql = "delete from htaccess_groups where status = 'delete'"; |
|---|
| | 543 | ($rs, $rdata) = doSQL($sql); |
|---|
| | 544 | |
|---|
| | 545 | $sql = "update htaccess_users set status = 'ok' where status = 'toadd' or status = 'change'"; |
|---|
| | 546 | ($rs, $rdata) = doSQL($sql); |
|---|
| | 547 | |
|---|
| | 548 | $sql = "update htaccess_groups set status = 'ok' where status = 'toadd' or status = 'change'"; |
|---|
| | 549 | ($rs, $rdata) = doSQL($sql); |
|---|
| | 550 | |
|---|
| 537 | 551 | } |
|---|
| 538 | 552 | |
|---|
| r426 |
r449 |
|
| 116 | 116 | } |
|---|
| 117 | 117 | |
|---|
| 118 | | if (!($file_type === "application/octet-stream")){ |
|---|
| | 118 | if (if (!($file_type === "text/plain") && !($file_type === "application/octet-stream")){ |
|---|
| 119 | 119 | set_page_message(tr('You can upload only text files!')); |
|---|
| 120 | 120 | return; |
|---|
| r371 |
r449 |
|
| 24 | 24 | </table> |
|---|
| 25 | 25 | <!-- EDP: logged_from --> |
|---|
| 26 | | <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" style="border-collapse: collapse;padding:0;margin:0;"> |
|---|
| | 26 | <form name="puser_assign" method="post" action="puser_assign.php?uname={UNAME}"> |
|---|
| | 27 | <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" style="border-collapse: collapse;padding:0;margin:0;"> |
|---|
| 27 | 28 | <tr> |
|---|
| 28 | 29 | <td align="left" valign="top" style="vertical-align: top; width: 195px; height: 56px;"><img src="{THEME_COLOR_PATH}/images/top/top_left.jpg" border="0"></td> |
|---|
| … | … | |
| 102 | 103 | <td> </td> |
|---|
| 103 | 104 | </tr> |
|---|
| 104 | | </table></td> |
|---|
| | 105 | </table> |
|---|
| | 106 | </form> |
|---|
| | 107 | </td> |
|---|
| | 108 | </tr> |
|---|
| 105 | 109 | </tr> |
|---|
| 106 | 110 | </table> |
|---|
| r440 |
r449 |
|
| 83 | 83 | <td> </td> |
|---|
| 84 | 84 | </tr> |
|---|
| 85 | | </table></td> |
|---|
| | 85 | </table> |
|---|
| | 86 | </form> |
|---|
| | 87 | </td> |
|---|
| 86 | 88 | </tr> |
|---|
| 87 | 89 | </table> |
|---|
| r434 |
r449 |
|
| 3 | 3 | #include <sys/stat.h> |
|---|
| 4 | 4 | #include <fcntl.h> |
|---|
| | 5 | #include <sys/param.h> |
|---|
| 5 | 6 | |
|---|
| 6 | 7 | #if defined(__OpenBSD__) || defined(__FreeBSD__) |
|---|
| … | … | |
| 11 | 12 | |
|---|
| 12 | 13 | #include <unistd.h> |
|---|
| 13 | | #include <sys/param.h> |
|---|
| 14 | 14 | #include "lr_syntax.h" |
|---|
| 15 | 15 | |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>