Rev | Line | |
---|
[10348] | 1 | <?php |
---|
| 2 | |
---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 4 | |
---|
| 5 | $edited_file = PHPWG_PLUGINS_PATH . "PersonalPlugin/main.inc.php"; |
---|
| 6 | |
---|
| 7 | if (file_exists($edited_file)) |
---|
| 8 | { |
---|
| 9 | $content_file = file_get_contents($edited_file); |
---|
| 10 | } |
---|
| 11 | else |
---|
| 12 | { |
---|
| 13 | $content_file = "<?php\n/* |
---|
| 14 | Plugin Name: " . l10n('locfiledit_onglet_plug') . " |
---|
| 15 | Version: 1.0 |
---|
| 16 | Description: " . l10n('locfiledit_onglet_plug') . " |
---|
| 17 | Plugin URI: http://piwigo.org |
---|
| 18 | Author: |
---|
| 19 | Author URI: |
---|
| 20 | */\n\n\n\n\n?>"; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | $codemirror_mode = 'application/x-httpd-php'; |
---|
| 24 | |
---|
| 25 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.