Changeset 123 for eaccelerator/trunk/webui.c
- Timestamp:
- 07/10/05 10:12:34 (4 years ago)
- Files:
-
- eaccelerator/trunk/webui.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/webui.c
r110 r123 1197 1197 char s[MAXPATHLEN]; 1198 1198 1199 if ((dp = opendir ( MMCG (cache_dir))) != NULL) {1199 if ((dp = opendir (EAG (cache_dir))) != NULL) { 1200 1200 while ((entry = readdir (dp)) != NULL) { 1201 1201 if (strstr 1202 1202 (entry->d_name, "eaccelerator-user") == entry->d_name) { 1203 1203 int f; 1204 strncpy (s, MMCG (cache_dir), MAXPATHLEN - 1);1204 strncpy (s, EAG (cache_dir), MAXPATHLEN - 1); 1205 1205 strlcat (s, "/", MAXPATHLEN); 1206 1206 strlcat (s, entry->d_name, MAXPATHLEN); … … 1234 1234 1235 1235 snprintf (szDir, MAXPATHLEN, "%s\\eaccelerator-user*", 1236 MMCG (cache_dir));1236 EAG (cache_dir)); 1237 1237 1238 1238 if ((hList = FindFirstFile (szDir, &FileData)) != INVALID_HANDLE_VALUE) { 1239 1239 do { 1240 1240 int f; 1241 strncpy (s, MMCG (cache_dir), MAXPATHLEN - 1);1241 strncpy (s, EAG (cache_dir), MAXPATHLEN - 1); 1242 1242 strlcat (s, "\\", MAXPATHLEN); 1243 1243 strlcat (s, FileData.cFileName, MAXPATHLEN); … … 1312 1312 char s[MAXPATHLEN]; 1313 1313 1314 if ((dp = opendir ( MMCG (cache_dir))) != NULL) {1314 if ((dp = opendir (EAG (cache_dir))) != NULL) { 1315 1315 while ((entry = readdir (dp)) != NULL) { 1316 1316 if (strstr (entry->d_name, "eaccelerator") == entry->d_name) { 1317 strncpy (s, MMCG (cache_dir), MAXPATHLEN - 1);1317 strncpy (s, EAG (cache_dir), MAXPATHLEN - 1); 1318 1318 strlcat (s, "/", MAXPATHLEN); 1319 1319 strlcat (s, entry->d_name, MAXPATHLEN); … … 1331 1331 char s[MAXPATHLEN]; 1332 1332 1333 snprintf (szDir, MAXPATHLEN, "%s\\eaccelerator*", MMCG (cache_dir));1333 snprintf (szDir, MAXPATHLEN, "%s\\eaccelerator*", EAG (cache_dir)); 1334 1334 1335 1335 if ((hList = FindFirstFile (szDir, &FileData)) != INVALID_HANDLE_VALUE) { 1336 1336 do { 1337 strncpy (s, MMCG (cache_dir), MAXPATHLEN - 1);1337 strncpy (s, EAG (cache_dir), MAXPATHLEN - 1); 1338 1338 strlcat (s, "\\", MAXPATHLEN); 1339 1339 strlcat (s, FileData.cFileName, MAXPATHLEN); … … 1648 1648 EACCELERATOR_PROTECT (); 1649 1649 ZEND_PUTS ("<form method=\"POST\"><center>\n"); 1650 if ( MMCG (enabled) && eaccelerator_mm_instance->enabled) {1650 if (EAG (enabled) && eaccelerator_mm_instance->enabled) { 1651 1651 ZEND_PUTS 1652 1652 ("<input type=\"submit\" name=\"disable\" value=\"Disable\" title=\"Disable caching of PHP scripts\" style=\"width:100px\">\n"); … … 1656 1656 } 1657 1657 #ifdef WITH_EACCELERATOR_OPTIMIZER 1658 if ( MMCG (optimizer_enabled)1658 if (EAG (optimizer_enabled) 1659 1659 && eaccelerator_mm_instance->optimizer_enabled) { 1660 1660 ZEND_PUTS … … 1683 1683 zend_printf 1684 1684 ("<tr valign=\"baseline\" bgcolor=\"#cccccc\"><td bgcolor=\"#ccccff\" ><b>%s</b></td><td align=\"left\">%s</td></tr>\n", 1685 "Caching Enabled", ( MMCG (enabled)1685 "Caching Enabled", (EAG (enabled) 1686 1686 && (eaccelerator_mm_instance != NULL) 1687 1687 && eaccelerator_mm_instance-> … … 1689 1689 zend_printf 1690 1690 ("<tr valign=\"baseline\" bgcolor=\"#cccccc\"><td bgcolor=\"#ccccff\" ><b>%s</b></td><td align=\"left\">%s</td></tr>\n", 1691 "Optimizer Enabled", ( MMCG (optimizer_enabled)1691 "Optimizer Enabled", (EAG (optimizer_enabled) 1692 1692 && (eaccelerator_mm_instance != NULL) 1693 1693 && eaccelerator_mm_instance->