1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Zoph Documentation - Configuration</title>
<link TYPE="text/css" REL="stylesheet" HREF="style.css">
</head>
<body>
<p>
All text is available under the terms of the <a href="http://en.wikibooks.org/wiki/GNU_Free_Documentation_License">GNU Free Documentation License</a>. For the latest version of this document, see <a href="http://en.wikibooks.org/wiki/Zoph">Wikibooks</a>.
</p>
<h1 class="firstHeading">Zoph/Configuration</h1>
<div id="bodyContent">
<table id="toc" class="toc" summary="Contents">
<tr>
<td>
<div id="toctitle">
<h2>Contents</h2>
</div>
<ul>
<li class="toclevel-1"><a href="#Interface_configuration"><span class="tocnumber">1</span> <span class="toctext">Interface configuration</span></a>
<ul>
<li class="toclevel-2"><a href="#ZOPH_TITLE"><span class="tocnumber">1.1</span> <span class="toctext">ZOPH_TITLE</span></a></li>
<li class="toclevel-2"><a href="#MAX_CRUMBS"><span class="tocnumber">1.2</span> <span class="toctext">MAX_CRUMBS</span></a></li>
<li class="toclevel-2"><a href="#MAX_DAYS_PAST"><span class="tocnumber">1.3</span> <span class="toctext">MAX_DAYS_PAST</span></a></li>
<li class="toclevel-2"><a href="#ZOPH_URL"><span class="tocnumber">1.4</span> <span class="toctext">ZOPH_URL</span></a></li>
<li class="toclevel-2"><a href="#ZOPH_SECURE_URL"><span class="tocnumber">1.5</span> <span class="toctext">ZOPH_SECURE_URL</span></a></li>
<li class="toclevel-2"><a href="#MAX_PEOPLE_SLOTS"><span class="tocnumber">1.6</span> <span class="toctext">MAX_PEOPLE_SLOTS</span></a></li>
<li class="toclevel-2"><a href="#DEFAULT_TABLE_WIDTH"><span class="tocnumber">1.7</span> <span class="toctext">DEFAULT_TABLE_WIDTH</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="#Authentication"><span class="tocnumber">2</span> <span class="toctext">Authentication</span></a>
<ul>
<li class="toclevel-2"><a href="#.24VALIDATOR"><span class="tocnumber">2.1</span> <span class="toctext">$VALIDATOR</span></a></li>
<li class="toclevel-2"><a href="#FORCE_SSL"><span class="tocnumber">2.2</span> <span class="toctext">FORCE_SSL</span></a></li>
<li class="toclevel-2"><a href="#FORCE_SSL_LOGIN"><span class="tocnumber">2.3</span> <span class="toctext">FORCE_SSL_LOGIN</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="#Resized_image_generation"><span class="tocnumber">3</span> <span class="toctext">Resized image generation</span></a>
<ul>
<li class="toclevel-2"><a href="#THUMB_SIZE"><span class="tocnumber">3.1</span> <span class="toctext">THUMB_SIZE</span></a></li>
<li class="toclevel-2"><a href="#MID_SIZE"><span class="tocnumber">3.2</span> <span class="toctext">MID_SIZE</span></a></li>
<li class="toclevel-2"><a href="#THUMB_PREFIX"><span class="tocnumber">3.3</span> <span class="toctext">THUMB_PREFIX</span></a></li>
<li class="toclevel-2"><a href="#MID_PREFIX"><span class="tocnumber">3.4</span> <span class="toctext">MID_PREFIX</span></a></li>
<li class="toclevel-2"><a href="#MIXED_THUMBNAILS"><span class="tocnumber">3.5</span> <span class="toctext">MIXED_THUMBNAILS</span></a></li>
<li class="toclevel-2"><a href="#THUMB_EXTENSION"><span class="tocnumber">3.6</span> <span class="toctext">THUMB_EXTENSION</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="#Database_configuration"><span class="tocnumber">4</span> <span class="toctext">Database configuration</span></a>
<ul>
<li class="toclevel-2"><a href="#DB_HOST"><span class="tocnumber">4.1</span> <span class="toctext">DB_HOST</span></a></li>
<li class="toclevel-2"><a href="#DB_NAME"><span class="tocnumber">4.2</span> <span class="toctext">DB_NAME</span></a></li>
<li class="toclevel-2"><a href="#DB_USER"><span class="tocnumber">4.3</span> <span class="toctext">DB_USER</span></a></li>
<li class="toclevel-2"><a href="#DB_PASS"><span class="tocnumber">4.4</span> <span class="toctext">DB_PASS</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="#Image_location"><span class="tocnumber">5</span> <span class="toctext">Image location</span></a>
<ul>
<li class="toclevel-2"><a href="#IMAGE_DIR"><span class="tocnumber">5.1</span> <span class="toctext">IMAGE_DIR</span></a></li>
<li class="toclevel-2"><a href="#WEB_IMAGE_DIR"><span class="tocnumber">5.2</span> <span class="toctext">WEB_IMAGE_DIR</span></a></li>
<li class="toclevel-2"><a href="#USE_IMAGE_SERVICE"><span class="tocnumber">5.3</span> <span class="toctext">USE_IMAGE_SERVICE</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="#Import_settings"><span class="tocnumber">6</span> <span class="toctext">Import settings</span></a>
<ul>
<li class="toclevel-2"><a href="#CLIENT_WEB_IMPORT"><span class="tocnumber">6.1</span> <span class="toctext">CLIENT_WEB_IMPORT</span></a></li>
<li class="toclevel-2"><a href="#SERVER_WEB_IMPORT"><span class="tocnumber">6.2</span> <span class="toctext">SERVER_WEB_IMPORT</span></a></li>
<li class="toclevel-2"><a href="#WEB_IMPORT_.28depricated.29"><span class="tocnumber">6.3</span> <span class="toctext">WEB_IMPORT (depricated)</span></a></li>
<li class="toclevel-2"><a href="#MAX_UPLOAD"><span class="tocnumber">6.4</span> <span class="toctext">MAX_UPLOAD</span></a></li>
<li class="toclevel-2"><a href="#REMOVE_ARCHIVE"><span class="tocnumber">6.5</span> <span class="toctext">REMOVE_ARCHIVE</span></a></li>
<li class="toclevel-2"><a href="#USE_DATED_DIRS"><span class="tocnumber">6.6</span> <span class="toctext">USE_DATED_DIRS</span></a></li>
<li class="toclevel-2"><a href="#HIER_DATED_DIRS"><span class="tocnumber">6.7</span> <span class="toctext">HIER_DATED_DIRS</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="#Features"><span class="tocnumber">7</span> <span class="toctext">Features</span></a>
<ul>
<li class="toclevel-2"><a href="#EMAIL_PHOTOS"><span class="tocnumber">7.1</span> <span class="toctext">EMAIL_PHOTOS</span></a></li>
<li class="toclevel-2"><a href="#WATERMARKING"><span class="tocnumber">7.2</span> <span class="toctext">WATERMARKING</span></a></li>
<li class="toclevel-2"><a href="#WATERMARK"><span class="tocnumber">7.3</span> <span class="toctext">WATERMARK</span></a></li>
<li class="toclevel-2"><a href="#ALLOW_COMMENTS"><span class="tocnumber">7.4</span> <span class="toctext">ALLOW_COMMENTS</span></a></li>
</ul>
</li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript">
//<![CDATA[
if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); }
//]]>
</script></p>
<p><a name="Interface_configuration" id="Interface_configuration"></a></p>
<h2>Interface configuration</h2>
<p><a name="ZOPH_TITLE" id="ZOPH_TITLE"></a></p>
<h3>ZOPH_TITLE</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">ZOPH_TITLE</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> The title for the application. This is what appears on the home page and in the browser's title bar.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>Zoph</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> You could set it to something like "My Photo Album".</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('ZOPH_TITLE', 'My Photos');</tt></td>
</tr>
</table>
<p><a name="MAX_CRUMBS" id="MAX_CRUMBS"></a></p>
<h3>MAX_CRUMBS</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">MAX_CRUMBS</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> The maximum number of breadcrumbs to allow</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>100</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('MAX_CRUMBS', 100);</tt></td>
</tr>
</table>
<p><a name="MAX_DAYS_PAST" id="MAX_DAYS_PAST"></a></p>
<h3>MAX_DAYS_PAST</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">MAX_DAYS_PAST</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> How many days appear in the dropdown on the search page for "photos taken/modified X days ago"</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>30</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('MAX_DAYS_PAST', 40);</tt></td>
</tr>
</table>
<p><a name="ZOPH_URL" id="ZOPH_URL"></a></p>
<h3>ZOPH_URL</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">ZOPH_URL</th>
<td style="width: 450px;"><b>Versions:</b> 0.4 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> The URL where your Zoph installation can be reached. Make sure to include http:// and no html filename. This is used for sending e-mails and SSL login.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('ZOPH_URL', '<a href="http://www.myserver.com/zoph'" class="external free" title="http://www.myserver.com/zoph'" rel="nofollow">http://www.myserver.com/zoph'</a>);</tt></td>
</tr>
</table>
<p><a name="ZOPH_SECURE_URL" id="ZOPH_SECURE_URL"></a></p>
<h3>ZOPH_SECURE_URL</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">ZOPH_SECURE_URL</th>
<td style="width: 450px;"><b>Versions:</b> 0.5 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> The URL where your Zoph installation can be reached, when SSL or SSL Login is used. Make sure to include https:// and no html filename. This is used for SSL usage and login.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('ZOPH_SECURE_URL', '<a href="https://www.myserver.com/zoph'" class="external free" title="https://www.myserver.com/zoph'" rel="nofollow">https://www.myserver.com/zoph'</a>);</tt></td>
</tr>
</table>
<p><a name="MAX_PEOPLE_SLOTS" id="MAX_PEOPLE_SLOTS"></a></p>
<h3>MAX_PEOPLE_SLOTS</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">MAX_PEOPLE_SLOTS</th>
<td style="width: 450px;"><b>Versions:</b> 0.5 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> How many "add people" dropdowns can a user configure. This determines what the maximum value is that the user can configure via the prefs page. If it is set to 10 and a user changes his preferences to 6, the user can add 6 people at once on an edit photo page. (provided the user has edit rights).</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>1</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> Any integer. <tt>1</tt> will make Zoph 0.5 behave like the older versions. Large numbers can have an impact on performance, 5-10 would be a reasonable maximum.</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('MAX_PEOPLE_SLOTS', 5);</tt></td>
</tr>
</table>
<p><a name="DEFAULT_TABLE_WIDTH" id="DEFAULT_TABLE_WIDTH"></a></p>
<h3>DEFAULT_TABLE_WIDTH</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">DEFAULT_TABLE_WIDTH</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Defines the width of the Zoph interface.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>600px</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> A number in pixels ("px") or percent ("%"), the latter is a percentage of the user's browser window width.</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('DEFAULT_TABLE_WIDTH, "600px");</tt></td>
</tr>
</table>
<p><a name="Authentication" id="Authentication"></a></p>
<h2>Authentication</h2>
<p><a name=".24VALIDATOR"></a></p>
<h3>$VALIDATOR</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">$VALIDATOR</th>
<td style="width: 450px;"><b>Versions:</b> 0.4 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Selects validation method. It needs to be a function in validator.inc.php.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt><tt>default_validate</tt></tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>default_validate</tt>: validates agains zophs internal user database, <tt>htpasswd_validate</tt>: validates using htpasswd, <tt>php_validate</tt>: validates using PHP authentication</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>$VALIDATOR = 'default_validate';</tt></td>
</tr>
</table>
<p><a name="FORCE_SSL" id="FORCE_SSL"></a></p>
<h3>FORCE_SSL</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">FORCE_SSL</th>
<td style="width: 450px;"><b>Versions:</b> 0.5 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Force users to use https when using Zoph. <a href="configuration.html#ZOPH_SECURE_URL" title="Zoph/Configuration">ZOPH_SECURE_URL</a> must be correctly defined when this is used.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt><tt>0</tt></tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: Use http or <tt>1</tt>: use https</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('FORCE_SSL', 0);</tt></td>
</tr>
</table>
<p><a name="FORCE_SSL_LOGIN" id="FORCE_SSL_LOGIN"></a></p>
<h3>FORCE_SSL_LOGIN</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">FORCE_SSL_LOGIN</th>
<td style="width: 450px;"><b>Versions:</b> 0.5 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Force users to use https when logging in to Zoph. After logging in, the user will be redirected to the http site. For this to work, both <a href="configuration.html#ZOPH_SECURE_URL" title="Zoph/Configuration">ZOPH_SECURE_URL</a> and <a href="configuration.html#ZOPH_URL" title="Zoph/Configuration">ZOPH_URL</a> must be correctly defined.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt><tt>0</tt></tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: Use http or <tt>1</tt>: use https</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('FORCE_SSL_LOGIN', 0);</tt></td>
</tr>
</table>
<p><a name="Resized_image_generation" id="Resized_image_generation"></a></p>
<h2>Resized image generation</h2>
<p>Zoph automatically creates thumbnails and medium sized ('mid') images during import. To influence this proces, you can edit the following parameters:</p>
<div style="background: yellow; width: 50%; border: 1px solid black;">
<p style="text-align: center; color: red; font-weight: bold; font-size: +1;">Important!</p>
<p style="color: black; font-weight: normal;">The options in this section have a matching setting in <tt>ZophImport</tt>. These have to be set the same.</p>
</div>
<p><a name="THUMB_SIZE" id="THUMB_SIZE"></a></p>
<h3>THUMB_SIZE</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">THUMB_SIZE</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Maximum width or height of thumbnails</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>120</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> Maximum width/height in pixels</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('THUMB_SIZE', 120);</tt></td>
</tr>
</table>
<p><a name="MID_SIZE" id="MID_SIZE"></a></p>
<h3>MID_SIZE</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">MID_SIZE</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Maximum width or height of 'mid' sized images</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>480</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> Maximum width/height in pixels</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('THUMB_SIZE', 480);</tt></td>
</tr>
</table>
<p><a name="THUMB_PREFIX" id="THUMB_PREFIX"></a></p>
<h3>THUMB_PREFIX</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">THUMB_PREFIX</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Prefix of the filenames for the thumbnails.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>thumb</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> Do not make this string empty!</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('THUMB_PREFIX', 'thumb');</tt></td>
</tr>
</table>
<p><a name="MID_PREFIX" id="MID_PREFIX"></a></p>
<h3>MID_PREFIX</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">MID_PREFIX</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Prefix of the filenames for the 'mid' sized images.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>thumb</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> Do not make this string empty!</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('MID_PREFIX', 'mid');</tt></td>
</tr>
</table>
<p><a name="MIXED_THUMBNAILS" id="MIXED_THUMBNAILS"></a></p>
<h3>MIXED_THUMBNAILS</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">MIXED_THUMBNAILS</th>
<td style="width: 450px;"><b>Versions:</b> 0.3 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Convert thumbnails to JPEGs. This setting should match what is in zophImport. If you are installing Zoph for the first time, it is recommend to set this to 0 and change zophImport accordingly. If you are upgrading, see the <a href="upgrading.html#Zoph_0.2.1_-.3E_0.3_Upgrade" title="Zoph/Upgrading">Zoph/Upgrading#Zoph_0.2.1_-.3E_0.3_Upgrade</a> for more information about this.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>1</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>1</tt>: Behave like older Zoph versions. <tt>0:</tt> Zoph will assume all thumbnails have the extension specified in <a href="configuration.html#THUMB_EXTENSION" title="Zoph/Configuration">THUMB_EXTENSION</a>.</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('MIXED_THUMBNAILS', '0');</tt></td>
</tr>
</table>
<p><a name="THUMB_EXTENSION" id="THUMB_EXTENSION"></a></p>
<h3>THUMB_EXTENSION</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">THUMB_EXTENSION</th>
<td style="width: 450px;"><b>Versions:</b> 0.3 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Extension for thumbnail files</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>JPG</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> See . This setting is ignored if <a href="configuration.html#THUMB_EXTENSION" title="Zoph/Configuration">MIXED_THUMBNAILS</a> is set to <tt>1</tt></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('THUMB_EXTENSION', 'jpg');</tt></td>
</tr>
</table>
<p><a name="Database_configuration" id="Database_configuration"></a></p>
<h2>Database configuration</h2>
<div style="background: yellow; width: 50%; border: 1px solid black;">
<p style="text-align: center; color: red; font-weight: bold; font-size: +1;">Important!</p>
<p style="color: black; font-weight: normal;">The options in this section have a matching setting in <tt>ZophImport</tt>. These have to be set the same.</p>
</div>
<p><a name="DB_HOST" id="DB_HOST"></a></p>
<h3>DB_HOST</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">DB_HOST</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Your database host</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt><tt>localhost</tt></tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> Any hostname or IP address</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('DB_HOST', 'localhost');</tt></td>
</tr>
</table>
<p><a name="DB_NAME" id="DB_NAME"></a></p>
<h3>DB_NAME</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">DB_NAME</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Name of the database, as it was created during installation</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt><tt>zoph</tt></tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('DB_NAME', 'zoph');</tt></td>
</tr>
</table>
<p><a name="DB_USER" id="DB_USER"></a></p>
<h3>DB_USER</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">DB_USER</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Name of the user that is used to connect to the MySQL database</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt><tt>zoph_rw</tt></tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('DB_USER', 'zoph_rw');</tt></td>
</tr>
</table>
<p><a name="DB_PASS" id="DB_PASS"></a></p>
<h3>DB_PASS</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">DB_PASS</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> MySQL password for the user defined with <a href="configuration.html#DB_USER" title="Zoph/Configuration">DB_USER</a>.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>password</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('DB_PASS', 'MySecretPassword');</tt></td>
</tr>
</table>
<p><a name="Image_location" id="Image_location"></a></p>
<h2>Image location</h2>
<p><a name="IMAGE_DIR" id="IMAGE_DIR"></a></p>
<h3>IMAGE_DIR</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">IMAGE_DIR</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Location of the images on the filesystem.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>/data/images/</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> Any directory on the filesystem. Make sure it ends with a <tt>/</tt>!</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('IMAGE_DIR', '/data/images/');</tt></td>
</tr>
</table>
<p><a name="WEB_IMAGE_DIR" id="WEB_IMAGE_DIR"></a></p>
<h3>WEB_IMAGE_DIR</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">WEB_IMAGE_DIR</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Location of the images relative to the webserver root.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>/data/images/</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> This directory should point to the same location as <a href="configuration.html#IMAGE_DIR" title="Zoph/Configuration">IMAGE_DIR</a>, but now seen from the webserver. Configure Apache so that this is correct. Make sure it ends with a <tt>/</tt>!</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('WEB_IMAGE_DIR', '/images/');</tt></td>
</tr>
</table>
<p><a name="USE_IMAGE_SERVICE" id="USE_IMAGE_SERVICE"></a></p>
<h3>USE_IMAGE_SERVICE</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">USE_IMAGE_SERVICE</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> This setting defines wheter photo's will be pulled directly from the filesystem by the webserver or to use <tt>image_service.php</tt>.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>1 (0 in v0.5.1 and earlier)</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: Take images from filesystem or <tt>1</tt>: Use <tt>image_service.php</tt>.
<p>The latter could be slightly lower in performance, but is highly recommended as it is more secure in combination with user access rights. Image service is required to be on if you wish to use watermarking or annotated photos.</p>
</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('IMAGE_SERVICE', '1');</tt></td>
</tr>
</table>
<p><a name="Import_settings" id="Import_settings"></a></p>
<h2>Import settings</h2>
<p><a name="CLIENT_WEB_IMPORT" id="CLIENT_WEB_IMPORT"></a></p>
<h3>CLIENT_WEB_IMPORT</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">CLIENT_WEB_IMPORT</th>
<td style="width: 450px;"><b>Versions:</b> 0.3.3. and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Use this option to enable or disable importing via the browser using a "browse" button to upload files from the client</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>1</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: disable, or <tt>1</tt>: enable importing uploaded files</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define(CLIENT_WEB_IMPORT, '1');</tt></td>
</tr>
</table>
<p><a name="SERVER_WEB_IMPORT" id="SERVER_WEB_IMPORT"></a></p>
<h3>SERVER_WEB_IMPORT</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">SERVER_WEB_IMPORT</th>
<td style="width: 450px;"><b>Versions:</b> 0.3.3. and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Use this option to enable or disable importing via the browser using a file already stored on the server</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>0</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: disable, or <tt>1</tt>: enable importing files stored on the server</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define(SERVER_WEB_IMPORT, '1');</tt></td>
</tr>
</table>
<p><a name="WEB_IMPORT_.28depricated.29" id="WEB_IMPORT_.28depricated.29"></a></p>
<h3>WEB_IMPORT <i>(depricated)</i></h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">WEB_IMPORT <i>(depricated)</i></th>
<td style="width: 450px;"><b>Versions:</b> 0.3.2. and before</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Use this option to enable or disable importing via the browser</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>0</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: disable, or <tt>1</tt>: enable importing files using the webinterface</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('WEB_IMPORT', '1');</tt></td>
</tr>
</table>
<p><br /></p>
<p><a name="MAX_UPLOAD" id="MAX_UPLOAD"></a></p>
<h3>MAX_UPLOAD</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">MAX_UPLOAD</th>
<td style="width: 450px;"><b>Versions:</b> 0.6 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Maximum size of uploaded file in bytes. Prior to v0.6. this was hardcoded to 10000000 bytes (10MB). Make sure you also change <tt>upload_max_filesize</tt>, <tt>post_max_size</tt> and possibly <tt>max_execution_time</tt> and <tt>max_input_time</tt> in <tt>php.ini</tt></td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>10000000</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('MAX_UPLOAD, '10000000');</tt></td>
</tr>
</table>
<p><a name="REMOVE_ARCHIVE" id="REMOVE_ARCHIVE"></a></p>
<h3>REMOVE_ARCHIVE</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">REMOVE_ARCHIVE</th>
<td style="width: 450px;"><b>Versions:</b> 0.5 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Remove the .tar or .zip file after a successful import.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>0</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: leave the file, or <tt>1</tt>: remove the file</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('REMOVE_ARCHIVE, '0');</tt></td>
</tr>
</table>
<p><a name="USE_DATED_DIRS" id="USE_DATED_DIRS"></a></p>
<h3>USE_DATED_DIRS</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">USE_DATED_DIRS</th>
<td style="width: 450px;"><b>Versions:</b> 0.5 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Put the files uploaded via the web import in dated directories, just like the <tt>--datedDirs</tt> option for zophImport. For example, a photo taken on Dec 21, 2005, will be placed in a directory 2005.12.21, under your default path.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>0</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: do not use dated dirs, or <tt>1</tt>: use dated dirs.</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('USE_DATED_DIRS', '0');</tt></td>
</tr>
</table>
<p><a name="HIER_DATED_DIRS" id="HIER_DATED_DIRS"></a></p>
<h3>HIER_DATED_DIRS</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">HIER_DATED_DIRS</th>
<td style="width: 450px;"><b>Versions:</b> 0.5 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Put the files uploaded via the web import in hierarchical dated directories, just like the <tt>--hierarchical</tt> option for zophImport. For example, a photo taken on Dec 21, 2005, will be placed in a directory tree 2005/12/21, under your default path.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>0</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: do not use hierarchical dated dirs, or <tt>1</tt>: use hierarchical dated dirs. This parameter will be ignored if <a href="configuration.html#USE_DATED_DIRS" title="Zoph/Configuration">USE_DATED_DIRS</a> is not set.</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('HIER_DATED_DIRS', '0');</tt></td>
</tr>
</table>
<p><br /></p>
<p><a name="Features" id="Features"></a></p>
<h2>Features</h2>
<p><a name="EMAIL_PHOTOS" id="EMAIL_PHOTOS"></a></p>
<h3>EMAIL_PHOTOS</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">EMAIL_PHOTOS</th>
<td style="width: 450px;"><b>Versions:</b> All versions</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> You can enable or disable the "mail this photo" feature" using this option.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>0</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: disable mail, <tt>1</tt>: enable mail</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('EMAIL_PHOTOS', '1');</tt></td>
</tr>
</table>
<p><a name="WATERMARKING" id="WATERMARKING"></a></p>
<h3>WATERMARKING</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">WATERMARKING</th>
<td style="width: 450px;"><b>Versions:</b> 0.5 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Turn the watermarking feature on or off.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>0</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: watermarking is disabled; <tt>1</tt>: watermarking is enabled. Watermarking only works if <a href="configuration.html#IMAGE_SERVICE" title="Zoph/Configuration">IMAGE_SERVICE</a> is enabled and <a href="configuration.html#WATERMARK" title="Zoph/Configuration">WATERMARK</a> is set to an existing GIF image. Please note that enabling this function uses a rather large amount of memory on the webserver. PHP by default allows a script to use a maximum of 8MB memory. You should probably increase this by changing <tt>memory_limit</tt> in php.ini. A rough estimation of how much memory it will use is 6 times the number of megapixels in your camera. For example, if you have a 5 megapixel camera, change the line in <tt>php.ini</tt> to <tt>memory_limit=30M</tt></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('WATERMARKING', '1');</tt></td>
</tr>
</table>
<p><a name="WATERMARK" id="WATERMARK"></a></p>
<h3>WATERMARK</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">WATERMARK</th>
<td style="width: 450px;"><b>Versions:</b> 0.5 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> If watermarking is used, this should be set to the name of the file that will be used as the watermark. It should be a GIF file, for best results, use contrasting colours and transparency. In the Contrib directory, 3 example files are included. The filename is relative to the <a href="configuration.html#IMAGE_DIR" title="Zoph/Configuration">IMAGE_DIR</a>.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>watermark.gif</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b></td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('WATERMARK', 'watermarks/topsecret.gif');</tt></td>
</tr>
</table>
<p><a name="ALLOW_COMMENTS" id="ALLOW_COMMENTS"></a></p>
<h3>ALLOW_COMMENTS</h3>
<table align="center" border="1" style="background: #dddddd; border: 2px solid #cccccc; border-collapse: collapse; margin: 0 1em 1em 1em; padding: 5px;">
<tr>
<th style="width: 150px;">ALLOW_COMMENTS</th>
<td style="width: 450px;"><b>Versions:</b> 0.6 and later</td>
</tr>
<tr>
<td colspan="2"><b>Description:</b> Enable comments. Before a user can actually leave comments, you should also give the user these rights through the edit user screen.</td>
</tr>
<tr>
<td colspan="2"><b>Default:</b> <tt>0</tt></td>
</tr>
<tr>
<td colspan="2"><b>Options:</b> <tt>0</tt>: disable comments <tt>1</tt>: enable comments</td>
</tr>
<tr>
<td colspan="2"><b>Example:</b> <tt>define('ALLOW_COMMENTS', '1');</tt></td>
</tr>
</table>
</div>
</html>
|