| 245 | | * The path takes any optional override into account, and is used directly in |
| 246 | | * Wikka, including in this file. |
| 247 | | */ |
| 248 | | if (!defined('WIKKA_LANG_PATH')) define('WIKKA_LANG_PATH', |
| 249 | | (defined('LOCAL_LANG_PATH') && ($canon_path = validLocalPath(LOCAL_LANG_PATH, 'dir'))) |
| 250 | | ? $canon_path |
| 251 | | : DEFAULT_LANG_PATH |
| 252 | | ); |
| 253 | | // ---------------------------- CORE PATHS DEFINED ----------------------------- |
| 254 | | |
| 255 | | |
| 256 | | // -------------------------- COMPATIBILITY LIBRARY ---------------------------- |
| 257 | | if ($debug) echo "loading compatibility library...<br/>\n"; |
| 258 | | // ---- requires the effective library path to be defined |
| 259 | | // Now that the "core" paths are defined, include the "compatibility functions". |
| 260 | | // We do this as early as possible: may be used for following defines and |
| 261 | | // derivations! |
| 262 | | require_once WIKKA_LIBRARY_PATH.DIRECTORY_SEPARATOR.'Compatibility.lib.php'; |
| 263 | | // ------------------------ END COMPATIBILITY LIBRARY -------------------------- |
| 264 | | |
| 265 | | // @@@ include regex library HERE, so this file AND the setup process can use it! |
| 266 | | |
| 267 | | // ---------------- DEFINE & DERIVE CONFIGURABLE COMPONENT PATHS --------------- |
| 268 | | if ($debug) echo "default 3rd-party component paths...<br/>\n"; |
| 269 | | /* |
| 270 | | Although these paths are configurable, we use defined constants here for three |
| 271 | | reasons: |
| 272 | | 1. Like a core path, these represent paths to components that might be |
| 273 | | shared between installations, so we use the same override mechanism here. |
| 274 | | 2. While the paths are configurable, the defaults defined here can be overridden |
| 275 | | <i>before</i> they get to the configuration file (and seen by the installer), |
| 276 | | so they effectively become the defaults used during the installation process. |
| 277 | | This enhances consistency between "sister" installations. |
| 278 | | 3. A (filesystem) file or directory path needs to take the local directory |
| 279 | | separator into account but in PHP4 a class variable (as used in the default |
| 280 | | configuration file) can only be initialized with a literal or a constant, |
| 281 | | not a concatenation. |
| 282 | | */ |
| 283 | | define('PATH_DIVIDER', ','); |
| 284 | | |
| 285 | | /**#@+ |
| 286 | | * Default for a (configurable) filesystem directory for a component. |
| 287 | | */ |
| 288 | | /** |
| 289 | | * Default <b>directory</b> where actions bundled with Wikka are stored. |
| 290 | | * May be overridden as well as configured to enable sharing Wikka components |
| 291 | | * between Wikka installations. |
| 292 | | */ |
| 293 | | if (!defined('DEFAULT_ACTION_PATH')) define('DEFAULT_ACTION_PATH', 'plugins/actions'.PATH_DIVIDER.'actions'); |
| 294 | | /** |
| 295 | | * Default <b>directory</b> where handlers bundled with Wikka are stored. |
| 296 | | * May be overridden as well as configured to enable sharing Wikka components |
| 297 | | * between Wikka installations. |
| 298 | | */ |
| 299 | | if (!defined('DEFAULT_HANDLER_PATH')) define('DEFAULT_HANDLER_PATH', 'plugins/handlers'.PATH_DIVIDER.'handlers'); |
| 300 | | /** |
| 301 | | * Default <b>directory</b> where formatters and highlighters bundled with Wikka are stored. |
| 302 | | * May be overridden as well as configured to enable sharing Wikka components |
| 303 | | * between Wikka installations. |
| 304 | | */ |
| 305 | | if (!defined('DEFAULT_FORMATTER_PATH')) define('DEFAULT_FORMATTER_PATH', 'plugins/formatters'.PATH_DIVIDER.'formatters'); |
| 306 | | /** |
| 307 | | * Default <b>directory</b> where template files bundled with Wikka are stored. |
| 308 | | * May be overridden as well as configured to enable sharing Wikka components |
| 309 | | * between Wikka installations. |
| 310 | | */ |
| 311 | | if (!defined('DEFAULT_TEMPLATE_PATH')) define('DEFAULT_TEMPLATE_PATH', 'plugins/templates'.PATH_DIVIDER.'templates'); |
| 312 | | /** |
| 313 | | * Default <b>directory</b> where 3rd-party components bundled with Wikka are stored. |
| 314 | | * This path isn't used directly but can be used in building other 3rd-party |
| 315 | | * component paths. |
| 316 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 317 | | * with other Wikka installations and other applications. |
| 318 | | */ |
| 319 | | if (!defined('DEFAULT_3RDPARTY_PATH')) define('DEFAULT_3RDPARTY_PATH', '3rdparty'); |
| 320 | | |
| 321 | | /** |
| 322 | | * Default <b>directory</b> for 3rd-party core components; these components are required for |
| 323 | | * basic Wikka functionality. |
| 324 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 325 | | * with other Wikka installations and other applications. |
| 326 | | */ |
| 327 | | if (!defined('DEFAULT_3RDPARTY_CORE_PATH')) define('DEFAULT_3RDPARTY_CORE_PATH', DEFAULT_3RDPARTY_PATH.DIRECTORY_SEPARATOR.'core'); |
| 328 | | /** |
| 329 | | * Default <b>directory</b> for 3rd-party plugin components; these components are optional |
| 330 | | * and extend Wikka functionality. |
| 331 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 332 | | * with other Wikka installations and other applications. |
| 333 | | */ |
| 334 | | if (!defined('DEFAULT_3RDPARTY_PLUGIN_PATH')) define('DEFAULT_3RDPARTY_PLUGIN_PATH', DEFAULT_3RDPARTY_PATH.DIRECTORY_SEPARATOR.'plugins'); |
| 335 | | |
| 336 | | /** |
| 337 | | * Default <b>directory</b> for the FeedCreator 3rd-party core component. |
| 338 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 339 | | * with other Wikka installations and other applications. |
| 340 | | */ |
| 341 | | if (!defined('DEFAULT_FEEDCREATOR_PATH')) define('DEFAULT_FEEDCREATOR_PATH', DEFAULT_3RDPARTY_CORE_PATH.DIRECTORY_SEPARATOR.'feedcreator'); |
| 342 | | /** |
| 343 | | * Default <b>directory</b> for the SafeHTML 3rd-party core component. |
| 344 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 345 | | * with other Wikka installations and other applications. |
| 346 | | */ |
| 347 | | if (!defined('DEFAULT_SAFEHTML_PATH')) define('DEFAULT_SAFEHTML_PATH', DEFAULT_3RDPARTY_CORE_PATH.DIRECTORY_SEPARATOR.'safehtml'); |
| 348 | | |
| 349 | | /** |
| 350 | | * Default <b>directory</b> for the optional GeSHi 3rd-party plugin component. |
| 351 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 352 | | * with other Wikka installations and other applications. |
| 353 | | */ |
| 354 | | if (!defined('DEFAULT_GESHI_PATH')) define('DEFAULT_GESHI_PATH', DEFAULT_3RDPARTY_PLUGIN_PATH.DIRECTORY_SEPARATOR.'geshi'); |
| 355 | | /** |
| 356 | | * Default <b>directory</b> for the language files for the GeSHi 3rd-party plugin component. |
| 357 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 358 | | * with other Wikka installations and other applications. |
| 359 | | */ |
| 360 | | if (!defined('DEFAULT_GESHI_LANG_PATH')) define('DEFAULT_GESHI_LANG_PATH', DEFAULT_GESHI_PATH.DIRECTORY_SEPARATOR.'geshi'); |
| 361 | | /** |
| 362 | | * Default <b>directory</b> for the optional Onyx-RSS 3rd-party plugin component. |
| 363 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 364 | | * with other Wikka installations and other applications. |
| 365 | | */ |
| 366 | | if (!defined('DEFAULT_ONYX_PATH')) define('DEFAULT_ONYX_PATH', DEFAULT_3RDPARTY_PLUGIN_PATH.DIRECTORY_SEPARATOR.'onyx-rss'); |
| 367 | | /**#@-*/ |
| 368 | | |
| 369 | | /**#@+ |
| 370 | | * String constant used as (configurable) filesystem <b>directory</b> for a component. |
| 371 | | */ |
| 372 | | /** |
| 373 | | * Effective (configurable) <b>directory</b> for Wikka actions. |
| 374 | | * The path takes any optional override into account; used to define a value in |
| 375 | | * the default configuration file. |
| 376 | | */ |
| 377 | | if (!defined('CONFIG_ACTION_PATH')) define('CONFIG_ACTION_PATH', |
| 378 | | (defined('LOCAL_ACTION_PATH') && ($canon_path = validLocalPath(LOCAL_ACTION_PATH, 'dir'))) |
| 379 | | ? $canon_path |
| 380 | | : DEFAULT_ACTION_PATH |
| 381 | | ); |
| 382 | | /** |
| 383 | | * Effective (configurable) <b>directory</b> for Wikka handlers. |
| 384 | | * The path takes any optional override into account; used to define a value in |
| 385 | | * the default configuration file. |
| 386 | | */ |
| 387 | | if (!defined('CONFIG_HANDLER_PATH')) define('CONFIG_HANDLER_PATH', |
| 388 | | (defined('LOCAL_HANDLER_PATH') && ($canon_path = validLocalPath(LOCAL_HANDLER_PATH, 'dir'))) |
| 389 | | ? $canon_path |
| 390 | | : DEFAULT_HANDLER_PATH |
| 391 | | ); |
| 392 | | /** |
| 393 | | * Effective (configurable) <b>directory</b> for Wikka formatters and highlighters. |
| 394 | | * The path takes any optional override into account; used to define a value in |
| 395 | | * the default configuration file. |
| 396 | | */ |
| 397 | | if (!defined('CONFIG_FORMATTER_PATH')) define('CONFIG_FORMATTER_PATH', |
| 398 | | (defined('LOCAL_FORMATTER_PATH') && ($canon_path = validLocalPath(LOCAL_FORMATTER_PATH, 'dir'))) |
| 399 | | ? $canon_path |
| 400 | | : DEFAULT_FORMATTER_PATH |
| 401 | | ); |
| 402 | | /** |
| 403 | | * Effective (configurable) <b>directory</b> for Wikka templates. |
| 404 | | * The path takes any optional override into account; used to define a value in |
| 405 | | * the default configuration file. |
| 406 | | */ |
| 407 | | if (!defined('CONFIG_TEMPLATE_PATH')) define('CONFIG_TEMPLATE_PATH', |
| 408 | | (defined('LOCAL_TEMPLATE_PATH') && ($canon_path = validLocalPath(LOCAL_TEMPLATE_PATH, 'dir'))) |
| 409 | | ? $canon_path |
| 410 | | : DEFAULT_TEMPLATE_PATH |
| 411 | | ); |
| 412 | | /** |
| 413 | | * Effective (configurable) <b>directory</b> for 3rd-party components; these components |
| 414 | | * are required for basic Wikka functionality. |
| 415 | | * The path takes any optional override into account; used to define a value in |
| 416 | | * the default configuration file. |
| 417 | | */ |
| 418 | | if (!defined('CONFIG_3RDPARTY_PATH')) define('CONFIG_3RDPARTY_PATH', |
| 419 | | (defined('LOCAL_3RDPARTY_PATH') && ($canon_path = validLocalPath(LOCAL_3RDPARTY_PATH, 'dir'))) |
| 420 | | ? $canon_path |
| 421 | | : DEFAULT_3RDPARTY_PATH |
| 422 | | ); |
| 423 | | /** |
| 424 | | * Effective (configurable) <b>directory</b> for 3rd-party core components; these components |
| 425 | | * are required for basic Wikka functionality. |
| 426 | | * The path takes any optional override into account; used to define a value in |
| 427 | | * the default configuration file. |
| 428 | | */ |
| 429 | | if (!defined('CONFIG_3RDPARTY_CORE_PATH')) define('CONFIG_3RDPARTY_CORE_PATH', |
| 430 | | (defined('LOCAL_3RDPARTY_CORE_PATH') && ($canon_path = validLocalPath(LOCAL_3RDPARTY_CORE_PATH, 'dir'))) |
| 431 | | ? $canon_path |
| 432 | | : DEFAULT_3RDPARTY_CORE_PATH |
| 433 | | ); |
| 434 | | /** |
| 435 | | * Effective (configurable) <b>directory</b> for 3rd-party plugin components; these components |
| 436 | | * are optional and extend Wikka functionality. |
| 437 | | * The path takes any optional override into account; used to define a value in |
| 438 | | * the default configuration file. |
| 439 | | */ |
| 440 | | if (!defined('CONFIG_3RDPARTY_PLUGIN_PATH')) define('CONFIG_3RDPARTY_PLUGIN_PATH', |
| 441 | | (defined('LOCAL_3RDPARTY_PLUGIN_PATH') && ($canon_path = validLocalPath(LOCAL_3RDPARTY_PLUGIN_PATH, 'dir'))) |
| 442 | | ? $canon_path |
| 443 | | : DEFAULT_3RDPARTY_PLUGIN_PATH |
| 444 | | ); |
| 445 | | |
| 446 | | /** |
| 447 | | * Effective (configurable) <b>directory</b> for the FeedCreator 3rd-party core component. |
| 448 | | * The path takes any optional override into account; used to define a value in |
| 449 | | * the default configuration file. |
| 450 | | */ |
| 451 | | if (!defined('CONFIG_FEEDCREATOR_PATH')) define('CONFIG_FEEDCREATOR_PATH', |
| 452 | | (defined('LOCAL_FEEDCREATOR_PATH') && ($canon_path = validLocalPath(LOCAL_FEEDCREATOR_PATH, 'dir'))) |
| 453 | | ? $canon_path |
| 454 | | : DEFAULT_FEEDCREATOR_PATH |
| 455 | | ); |
| 456 | | /** |
| 457 | | * Effective (configurable) <b>directory</b> for the SafeHTML 3rd-party core component. |
| 458 | | * The path takes any optional override into account; used to define a value in |
| 459 | | * the default configuration file. |
| 460 | | */ |
| 461 | | if (!defined('CONFIG_SAFEHTML_PATH')) define('CONFIG_SAFEHTML_PATH', |
| 462 | | (defined('LOCAL_SAFEHTML_PATH') && ($canon_path = validLocalPath(LOCAL_SAFEHTML_PATH, 'dir'))) |
| 463 | | ? $canon_path |
| 464 | | : DEFAULT_SAFEHTML_PATH |
| 465 | | ); |
| 466 | | |
| 467 | | /** |
| 468 | | * Effective (configurable) <b>directory</b> for the optional GeSHi 3rd-party plugin package. |
| 469 | | * The path takes any optional override into account; used to define a value in |
| 470 | | * the default configuration file. |
| 471 | | */ |
| 472 | | if (!defined('CONFIG_GESHI_PATH')) define('CONFIG_GESHI_PATH', |
| 473 | | (defined('LOCAL_GESHI_PATH') && ($canon_path = validLocalPath(LOCAL_GESHI_PATH, 'dir'))) |
| 474 | | ? $canon_path |
| 475 | | : DEFAULT_GESHI_PATH |
| 476 | | ); |
| 477 | | /** |
| 478 | | * Effective (configurable) <b>directory</b> for the language files for the GeSHi 3rd-party |
| 479 | | * plugin component. |
| 480 | | * The path takes any optional override into account; used to define a value in |
| 481 | | * the default configuration file. |
| 482 | | */ |
| 483 | | if (!defined('CONFIG_GESHI_LANG_PATH')) define('CONFIG_GESHI_LANG_PATH', |
| 484 | | (defined('LOCAL_GESHI_LANG_PATH') && ($canon_path = validLocalPath(LOCAL_GESHI_LANG_PATH, 'dir'))) |
| 485 | | ? $canon_path |
| 486 | | : DEFAULT_GESHI_LANG_PATH |
| 487 | | ); |
| 488 | | /** |
| 489 | | * Effective (configurable) <b>directory</b> for the optional Onyx-RSS 3rd-party plugin component. |
| 490 | | * The path takes any optional override into account; used to define a value in |
| 491 | | * the default configuration file. |
| 492 | | */ |
| 493 | | if (!defined('CONFIG_ONYX_PATH')) define('CONFIG_ONYX_PATH', |
| 494 | | (defined('LOCAL_ONYX_PATH') && ($canon_path = validLocalPath(LOCAL_ONYX_PATH, 'dir'))) |
| 495 | | ? $canon_path |
| 496 | | : DEFAULT_ONYX_PATH |
| 497 | | ); |
| 498 | | /**#@-*/ |
| 499 | | // ------------------- CONFIGURABLE COMPONENT PATHS DEFINED -------------------- |
| 500 | | |
| 501 | | // -------------- DEFINE & DERIVE CONFIGURABLE COMPONENT URI PATHS ------------- |
| 502 | | if ($debug) echo "default 3rd-party component URI paths...<br/>\n"; |
| 503 | | /**#@+ |
| 504 | | * Default for a (configurable) <b>URL path component</b> for a 3rd-party component. |
| 505 | | */ |
| 506 | | /** |
| 507 | | * Default <b>URL path component</b> for the WikiEdit scripts. |
| 508 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 509 | | * between Wikka installations. |
| 510 | | */ |
| 511 | | if (!defined('DEFAULT_WIKIEDIT_URIPATH')) define('DEFAULT_WIKIEDIT_URIPATH', filesys2uri(DEFAULT_3RDPARTY_PLUGIN_PATH).'/wikiedit'); |
| 512 | | /** |
| 513 | | * Default <b>URL path component</b> for the FreeMind display applet. |
| 514 | | * May be overridden as well as configured to enable sharing 3rd-party components |
| 515 | | * between Wikka installations. |
| 516 | | */ |
| 517 | | if (!defined('DEFAULT_FREEMIND_URIPATH')) define('DEFAULT_FREEMIND_URIPATH', filesys2uri(DEFAULT_3RDPARTY_PLUGIN_PATH).'/freemind'); |
| 518 | | /**#@-*/ |
| 519 | | |
| 520 | | /**#@+ |
| 521 | | * Default for a (configurable) <b>URL path component</b> for a 3rd-party component. |
| 522 | | */ |
| 523 | | /** |
| 524 | | * Effective default (configurable) <b>URL path component</b> for the WikiEdit |
| 525 | | * scripts. |
| 526 | | * The path takes any optional override into account; used to define a value in |
| 527 | | * the default configuration file. |
| 528 | | */ |
| 529 | | if (!defined('CONFIG_WIKIEDIT_URIPATH')) define('CONFIG_WIKIEDIT_URIPATH', |
| 530 | | (defined('LOCAL_WIKIEDIT_URIPATH') && ($uri_path = validUriPath(LOCAL_WIKIEDIT_URIPATH))) // @@@ URI path |
| 531 | | ? $uri_path |
| 532 | | : DEFAULT_WIKIEDIT_URIPATH |
| 533 | | ); |
| 534 | | /** |
| 535 | | * Effective default (configurable) <b>URL path component</b> for the FreeMind |
| 536 | | * display applet. |
| 537 | | * The path takes any optional override into account; used to define a value in |
| 538 | | * the default configuration file. |
| 539 | | */ |
| 540 | | if (!defined('CONFIG_FREEMIND_URIPATH')) define('CONFIG_FREEMIND_URIPATH', |
| 541 | | (defined('LOCAL_FREEMIND_URIPATH') && ($uri_path = validUriPath(LOCAL_FREEMIND_URIPATH))) // @@@ URI path |
| 542 | | ? $uri_path |
| 543 | | : DEFAULT_FREEMIND_URIPATH |
| 544 | | ); |
| 545 | | /**#@-*/ |
| 546 | | // ----------------- CONFIGURABLE COMPONENT URI PATHS DEFINED ------------------ |
| 547 | | |
| 548 | | // ------------------------- OTHER CONFIGURABLE DEFAULTS ----------------------- |
| 549 | | /**#@+ |
| 550 | | * String constant used as default for a configurable setting. |
| 551 | | */ |
| 552 | | /** |
| 553 | | * Defines the (configurable) default language. Wikka will attempt to load the |
| 554 | | * corresponding language file. |
| 555 | | * This value is directly used here in wikka.php but also used as the default |
| 556 | | * value in the default configuration file. |
| 557 | | */ |
| 558 | | if (!defined('CONFIG_DEFAULT_LANGUAGE')) define('CONFIG_DEFAULT_LANGUAGE', 'en'); |
| 559 | | /**#@-*/ |
| 560 | | // ----------------------- END OTHER CONFIGURABLE DEFAULTS --------------------- |
| 561 | | |
| 562 | | |
| 563 | | // ------------------ DEFINE & DERIVE CONFIGURATION FILE PATHS ----------------- |
| 564 | | if ($debug) echo "configuration file paths...<br/>\n"; |
| 565 | | // ---- requires WIKKA_LIBRARY_PATH to be defined so this section must come after |
| 566 | | // that constant is derived. |
| 567 | | /**#@+ |
| 568 | | * String constant used as default for the (filesystem) path for a configuration file. |
| 569 | | */ |
| 570 | | /** |
| 571 | | * Default filesystem path for the <b>default</b> configuration <b>file</b>. |
| 572 | | * By default located in the Wikka library directory; this setting is overridable |
| 573 | | * on its own, whether or not the default library location has been overridden. |
| 574 | | */ |
| 575 | | if (!defined('DEFAULT_DEFAULT_CONFIGFILE')) define('DEFAULT_DEFAULT_CONFIGFILE', WIKKA_LIBRARY_PATH.DIRECTORY_SEPARATOR.'Config.class.php'); |
| 576 | | /** |
| 577 | | * Default filesystem path for the <b>site</b> configuration <b>file</b>. |
| 578 | | * By default located in the Wikka installation directory; this setting is |
| 579 | | * overridable to enable locating it outside the webroot (and/or sharing it with |
| 580 | | * another Wikka installation). |
| 581 | | */ |
| 582 | | if (!defined('DEFAULT_SITE_CONFIGFILE')) define('DEFAULT_SITE_CONFIGFILE', 'wikka.config.php'); |
| 583 | | /**#@-*/ |
| 584 | | |
| 585 | | // FIXED this is an (improved and extended) version of the method introduced in |
| 586 | | // 1.1.6.3 to avoid GetEnv #470 |
| 587 | | |
| 588 | | /**#@+ |
| 589 | | * String constant defining the effective (filesystem) path for a configuration <b>file</b>. |
| 590 | | */ |
| 591 | | /** |
| 592 | | * Effective filesystem path for the <b>default</b> configuration <b>file</b>. |
| 593 | | * The path takes any optional override into account, and is used directly in |
| 594 | | * Wikka, including in this file. |
| 595 | | */ |
| 596 | | if (!defined('DEFAULT_CONFIGFILE')) define('DEFAULT_CONFIGFILE', |
| 597 | | (defined('LOCAL_DEFAULT_CONFIGFILE') && ($canon_path = validLocalPath(LOCAL_DEFAULT_CONFIGFILE, 'file'))) |
| 598 | | ? $canon_path |
| 599 | | : DEFAULT_DEFAULT_CONFIGFILE |
| 600 | | ); |
| 601 | | /** |
| 602 | | * Effective filesystem path for the <b>site</b> configuration <b>file</b>. |
| 603 | | * The path takes any optional override into account, and is used directly in |
| 604 | | * Wikka, including in this file. The file does not need to exist; if it doesn't, |
| 605 | | * the installer will be triggered (which will create the file). |
| 606 | | */ |
| 607 | | if (!defined('SITE_CONFIGFILE')) define('SITE_CONFIGFILE', |
| 608 | | (defined('LOCAL_SITE_CONFIGFILE') && ($canon_path = validLocalPath(LOCAL_SITE_CONFIGFILE, 'file', FALSE))) |
| 609 | | ? $canon_path |
| 610 | | : DEFAULT_SITE_CONFIGFILE |
| 611 | | ); |
| 612 | | /**#@-*/ |
| 613 | | // ---------------------- CONFIGURATION FILE PATHS DEFINED --------------------- |
| 614 | | |
| 615 | | |
| | 215 | */ |
| | 216 | if (!defined('WIKKA_LANG_PATH')) define('WIKKA_LANG_PATH', 'lang'); |
| | 217 | |
| | 218 | /** |
| | 219 | * Default <b>directory</b> where actions bundled with Wikka are |
| | 220 | * stored. |
| | 221 | */ |
| | 222 | if(!defined('DEFAULT_ACTION_PATH')) define('DEFAULT_ACTION_PATH', 'plugins/actions'.PATH_DIVIDER.'actions'); |
| | 223 | |
| | 224 | /** |
| | 225 | * Default <b>directory</b> where handlers bundled with Wikka are |
| | 226 | * stored. |
| | 227 | */ |
| | 228 | if(!defined('DEFAULT_HANDLER_PATH')) define('DEFAULT_HANDLER_PATH', 'plugins/handlers'.PATH_DIVIDER.'handlers'); |
| | 229 | |
| | 230 | /** |
| | 231 | * Default <b>directory</b> where formatters bundled with Wikka are |
| | 232 | * stored. |
| | 233 | */ |
| | 234 | if(!defined('DEFAULT_FORMATTER_PATH')) define('DEFAULT_FORMATTER_PATH', 'plugins/formatters'.PATH_DIVIDER.'formatters'); |
| | 235 | |
| | 236 | /** |
| | 237 | * Default <b>directory</b> where templates bundled with Wikka are |
| | 238 | * stored. |
| | 239 | */ |
| | 240 | if(!defined('DEFAULT_TEMPLATE_PATH')) define('DEFAULT_TEMPLATE_PATH', 'plugins/templates'.PATH_DIVIDER.'templates'); |
| | 241 | |
| | 242 | /** |
| | 243 | * Directory for 3rd-party components |
| | 244 | */ |
| | 245 | if(!defined('DEFAULT_3RDPARTY_PATH')) define('DEFAULT_3RDPARTY_PATH', '3rdparty'); |
| | 246 | |
| | 247 | /** Default <b>directory</b> where 3rdparty core components bundled |
| | 248 | * with Wikka are stored. These components are required for basic |
| | 249 | * Wikka functionality. |
| | 250 | */ |
| | 251 | if(!defined('DEFAULT_3RDPARTY_CORE_PATH')) define('DEFAULT_3RDPARTY_CORE_PATH', DEFAULT_3RDPARTY_PATH.DIRECTORY_SEPARATOR.'core'); |
| | 252 | |
| | 253 | /** Default <b>directory</b> where 3rdparty plugin components bundled |
| | 254 | * with Wikka are stored. These components are optional and extend |
| | 255 | * Wikka functionality. |
| | 256 | */ |
| | 257 | if(!defined('DEFAULT_3RDPARTY_PLUGIN_PATH')) define('DEFAULT_3RDPARTY_PLUGIN_PATH', DEFAULT_3RDPARTY_PATH.DIRECTORY_SEPARATOR.'plugin'); |
| | 258 | |
| | 259 | /** |
| | 260 | * Default <b>directory</b> for the FeedCreator 3rd party component. |
| | 261 | */ |
| | 262 | if(!defined('DEFAULT_FEEDCREATOR_PATH')) define('DEFAULT_FEEDCREATOR_PATH', DEFAULT_3RDPARTY_CORE_PATH.DIRECTORY_SEPARATOR.'feedcreator'); |
| | 263 | |
| | 264 | /** |
| | 265 | * Default <b>directory</b> for the SafeHTML 3rd party component. |
| | 266 | */ |
| | 267 | if(!defined('DEFAULT_SAFEHTML_PATH')) define('DEFAULT_SAFEHTML_PATH', DEFAULT_3RDPARTY_CORE_PATH.DIRECTORY_SEPARATOR.'safehtml'); |
| | 268 | |
| | 269 | /** |
| | 270 | * Default <b>directory</b> for the optional GeSHi 3rd party plugin component. |
| | 271 | */ |
| | 272 | if(!defined('DEFAULT_GESHI_PATH')) define('DEFAULT_GESHI_PATH', DEFAULT_3RDPARTY_PLUGIN_PATH.DIRECTORY_SEPARATOR.'geshi'); |
| | 273 | |
| | 274 | /** |
| | 275 | * Default <b>directory</b> for the language files for the GeSHi 3rd |
| | 276 | * party plugin component. |
| | 277 | */ |
| | 278 | if(!defined('DEFAULT_GESHI_LANG_PATH')) define('DEFAULT_GESHI_LANG_PATH', DEFAULT_GESHI_PATH.DIRECTORY_SEPARATOR.'geshi'); |
| | 279 | |
| | 280 | /** |
| | 281 | * Default <b>directory</b> for the optional Onyx-RSS 3rd party |
| | 282 | * plugin component. |
| | 283 | */ |
| | 284 | if(!defined('DEFAULT_ONYX_PATH')) define('DEFAULT_ONYX_PATH', DEFAULT_3RDPARTY_PLUGIN_PATH.DIRECTORY_SEPARATOR.'onyx-rss'); |
| | 285 | |
| | 286 | /** |
| | 287 | * <b>URL path component</b> pointing to the location of the WikiEdit scripts. |
| | 288 | * This path will be extended by the system with the file name for each of |
| | 289 | * the required scripts. |
| | 290 | */ |
| | 291 | if(!defined('DEFAULT_WIKIEDIT_URIPATH')) define('DEFAULT_WIKIEDIT_URIPATH', filesys2uri(DEFAULT_3RDPARTY_PLUGIN_PATH).DIRECTORY_SEPARATOR.'wikiedit'); |
| | 292 | |
| | 293 | /** |
| | 294 | * <b>URL path component</b> for the FreeMind display applet. |
| | 295 | * This path will be extended by the system with the file name for the |
| | 296 | * applet's jar archive. |
| | 297 | */ |
| | 298 | if(!defined('DEFAULT_FREEMIND_URIPATH')) define('DEFAULT_FREEMIND_URIPATH', filesys2uri(DEFAULT_3RDPARTY_PLUGIN_PATH).DIRECTORY_SEPARATOR.'freemind'); |
| | 299 | |
| | 300 | // ------------------- COMPONENT PATHS DEFINED -------------------- |