1. Trang chủ
  2. » Công Nghệ Thông Tin

Secure PHP Development- P176 docx

5 271 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 82,98 KB

Nội dung

intranet document publisher, 267–268 intranet system, 222–223 online help system, 417–418 tell-a-friend system, 450 vote application, 703 Web forms manager, 679 HTMLtoText() method, 415 htpasswd utility, Apache 2.0, 785 httpd script, 805–806 httpd.conf script, 786–790, 813–814 HyperText Markup Language (HTML), external templates, 4, 5–11 I IfModule directive, 793, 801 implementation documentation, commenting, 59 implicit_flush directive, 817 include_path directive, 818 _indexOfSection() method, 407–408 information authentication shielding, 60 debugging display color, 87 debugging storage, 87 sensitive concealing, 38–39 input variables, automatic creation risks, 30–32 INSERT SQL statement, 51–52 installing, phpMyAdmin, 771–772 integer, defined, 765 interfaces, external HTML template, 4 Internet Geographic Database, geo location finder tool, 584 Internet resource manager application, intranet system, 204 Internet Resource Manager system application classes, 362–368 application configuration files, 369–373 calendar.errors file, 373 calendar.messages file, 373 category adding, 395–396 Category Manager, 394 category manager application, 374–379 click-through tracking, 359 error messages, 373 HTML interface templates, 373–374 installation, 391–393 Internet resource adding, 397–398 IRM database, 359–361 IRM search interface, 394 IrmCategory class, 362–363 irm.conf file variables, 369–372 IrmResource class, 364–368 keyword search support, 359 Message class, 368 messages, 368, 373 resource manager application, 379–385 resource organization, 359 resource rankings, 359 resource tracking application, 385–386 search manager application, 386–391 search results display, 399–400 security issues, 401 subcategory adding, 395–396 testing, 393–400 intranet calendar manager application configuration files, 343–347 automatic reminders, 336 calendar event manager application, 350–352 calendar manager application, 348–349 calendar.conf file, 344–347 database design, 336–337 error messages, 347 event adding, 355–356 event assignments, 336 Event class, 337–343 event modifying, 356 event reminder viewing, 356–357 event sharing, 336 global events, 335 holiday events, 335 continued Index 851 549669 Index.qxd 4/4/03 2:42 PM Page 851 intranet calendar manager continued HTML templates, 348 installation, 353–354 messages, 347 repeatable events, 335 testing, 354–357 weekends, 355 intranet contact manager application classes, 297–307 application templates, 312–313 automatic reminders, 294 category adding, 326–327 Category class, 298–301 central contact database, 293–296 configuration files, 308–311 contact adding, 328 contact category hierarchy, 293 contact category manager application, 313–317 Contact class, 302–307 contact management, 293 contact manager application, 317–323 contact.conf file, 308–312 e-mail interface, 294 e-mail sending, 330 error messages, 312 installation, 323–325 messages, 312 searches, 293, 325–326, 329–330 subcategory searches, 330–332 testing, 325–332 intranet database, tables, 205–206 intranet document publisher application classes, 250–259 automated announcements, 248 category adding, 286–287 Category class, 251–255 category-based document organization, 247–248 configuration files, 261–267 database design, 248–250 Doc class, 255–258 document adding, 288–292 document details application, 280–281 document index display application, 278–279 document publisher application, 268–277 document response application, 281–282 document view list application, 282–283 error messages, 267 HTML templates, 267–268 id.conf file, 261–265 installation, 283–285 ld.errors file, 267 ld.messages file, 266–267 main document index, 285–286 messages, 266–267 Response class, 258–260 testing, 285–292 user-level access controls, 248 Web forms, 247 intranet home application message writing, 244–245 testing, 240–245 user access logs, 242–244 user preferences, 242 intranet system access reporter application, 230–233 ActivityAnalyzer class, 213–217 admin access reporter application, 233–235 application configuration files, 219–222 application templates, 222–223 application testing, 240–245 CD-ROM installing from, 238–240 central contact-manager application, 204 central event-calendar application, 204 central user authentication, 203 daily logbook manager application, 236 database design, 204–206 document-publishing application, 204 home.conf file, 219–222 852 Index 549669 Index.qxd 4/4/03 2:42 PM Page 852 home.php application, 223–225 HTML interface templates, 222–223 Internet resource manager application, 204 IntranetUser class, 217–218 Message class, 207–213 message creation/deletion, 207–213 messages (notes), 204 MOTD (Message of the Day), 204 MOTD manager application, 225–229 reports, 232 user home application, 203 user management, 203 user preference application, 237–238 user preferences, 242 user tip application, 237 intranets application framework, 67–71 application-specific authorization, 67 business-logic requirements, 69 central authentication, 66–67 database abstraction, 70–81 debugging requirements, 85–91 error handler class, 81–84 PHP Application Framework (PHPAF) layer, 68–69 relational database, 69–70 shared database, 67 template-based presentation layer, 68 user requirements, 65–67 IntranetUser class, 217–218 IntranetUser() method, 218–219 introduction message, tell-a-friend system, 464–471 IP/network address, authorization access control, 24 IrmCategory class, 362–363 IrmCategory() constructor method, 362–363 IrmResource class, 364–368 IrmResource() constructor method, 364–365 isAccessAllowed() method, 445 isAccessDenied() method, 445 isAllowed() method, 665 is_authenticated() method, 131, 143 is_coupon() function, 31 is_customer() function, 31 isDenied() method, 665 isKnownForm() method, 670 isLoaded() method, 408 isMaximumSubmitted() method, 438 isNetworkAddr() method, 665, 666 isNodeOf() method, 665, 666 isOKtoSendMail() function, 603–604 isRead() method, 228 isSection() method, 408 isset() function, 568 ISSUBMITTED() method, 483 isValidAge() function, 36 isViewable() method, 212 J JavaScript, internationalized error message display, 84 jpcache, PHP applications, 727–729 K KeepAlive directive, 793 KeepAliveTimeout directive, 793 keepTrack() method, 385 keepTrackAndRedirect() method, 545 key=value pairs, associative arrays, 46–47 keyword search, online help system element, 403 L LANGUAGE constant, 20–21 language poll form, vote application, 709 LanguagePriority directive, 804 languages default setting, 84 internationalizable error messages, 81–84 Language Translation Tools, 83 message selection, 20–21 libraries, PHPLIB, 7–8 Index 853 549669 Index.qxd 4/4/03 2:42 PM Page 853 lib.session_handler.php script, 151–153 links, forgotten password/central login interface, 201 Linux Apache 2.0 installation/configuration, 781–808 file/directory commands, 821–831 multiprocessing modules, 783–784 MySQL installation/configuration, 808–810 predefined cron directories, 569 List class, 516–518 list manager application, e-campaign system, 528–532 List Manager application, e-mail survey system, 476 Listen directive, 795 lists combo, 55–58 e-campaign system creating, 549–550 ln command, 824–825 loadCatInfo() method, 252, 298 loadConfigFile() method, 670 loadContactInfo() method, 302–303 loadDocInfo() method, 256 load_error_code() function, 84 load_error_code() method, 84 loadEventInfo() method, 339 _loadFile() method, 415 loadMap() method, 413–414 loadMessageInfo() method, 208–209 loadmonitor.conf script, 596 loadmonitor_mail.txt script, 604 loadmonitor.php script, 597–602 loadResponseInfo() method, 259 locate command, 825 log_errors directive, 818 login application authentication determination, 131–133 configuration, 133–134 error messages, 136 login.php script, 127–131 menu display, 136–137 purpose, 127 testing, 148–149 warning page, 137–138 login.conf script, 133–134 login.errors script, 136 login.html script, 136–137 login.php script, 127–131 logins MD5 message digest, 740–743 persistent, 149–155 LogLevel directive, 802 logout application configuration, 143–145 error messages, 145 flowchart, 138 session termination, 139–143 testing, 148–149 logout.conf script, 143–145 logout.errors script, 145 logout.messages script, 145 logout.php script, 139–143 logresolve utility, Apache 2.0, 785 logresolve.pl script, Apache 2.0, 785 logUserIn() method, 230–231 logUserOut method, 230 loops benchmarking, 718–722 while, 50 loops.php script, 718–721 ls command, 825–826 M magic_quotes_gpc directive, 818 magic_quotes_runtime directive, 818 $MAIL_CONTROL_FILE array, 597 $MAIL_FREQUENCY array, 597 $MAIL_TEMPLATE array, 597 mailToContact() method, 317–318 main menu application, tell-a-friend system, 451 makeAddRequest() method, 635 makeIndex() method, 419 makeindex.php script, 428 makeKeywordIndex() method, 412–413 854 Index 549669 Index.qxd 4/4/03 2:42 PM Page 854 makesite script, 619–635 makesite tool, Apache virtual host, 610–611, 612–636 makesite.conf script, 612–614 makeVirtualHost() function, 615 makezone script, 648–653 makezone utility BIND domain manager, 641–642 configuration, 642–647 functions, 653–655 implementation process, 647–655 installation, 655 standard template, 644–645 templates, 643–647 testing, 656–658 zone template, 645–646 makezone.conf script, 642–643 map() method, 517 markers, HTML template blocks, 9–11 MaxClients directive, 794 max_execution_time directive, 818–819 MaxKeepAliveRequests directive, 793 MaxRequestPerChild directive, 794 MaxSpareThreads directive, 794 MD5 message digest, login security, 740–743 md5_login.html script, 741–742 md5_login.php script, 742 memory_limit directive, 819 menus, user administration application, 188 Message class addMessage() method, 210, 443 addNewEcampaign Message() method, 520 addViewer() method, 211 deleteMessage() method, 444, 520 deleteViewers() method, 212 EcampaignMessage() method, 519–520 getAll Messages() method, 210, 443 getAvailableMessages() method, 520 getEcampaignHeaderInfo() method, 520 getEcampaignMessage Info() method, 520 getMessageInfo() method, 442–443 getMessages() method, 209 getMsgIDbyMessageTitle() method, 212 getViewers() method, 211 isViewable() method, 212 loadMessageInfo() method, 208–209 Message() method, 208, 442 modifyMessage() method, 211, 444 setEcampaignMessageID() method, 520 setMessageID() method, 442 UpdateEcampaignMessage() method, 520 UpdateEcampaignMessageHdr() method, 520 Message() constructor method, 442 message editor, tell-a-friend system, 432 message manager application e-campaign system, 535–538 tell-a-friend system, 454–456 Message() method, 208, 442 Message of the Day (MOTD) manager application, intranet system, 225–229 messages. See also error messages creating/deleting, 207–213 customizable, 4, 14–21 dialog/status, 21 e-campaign system, 519–520, 526, 552–553 e-mail survey system, 498–499 forgotten-password recovery, 198 internationalizing, 116 Internet Resource Manager system, 368, 373 intranet calendar manager, 347 intranet contact manager, 312 intranet document publisher, 266–267 intranet home application, 244–245 intranet requirement, 81–84 continued Index 855 549669 Index.qxd 4/4/03 2:42 PM Page 855 . 66–67 database abstraction, 70–81 debugging requirements, 85–91 error handler class, 81–84 PHP Application Framework (PHPAF) layer, 68–69 relational database, 69–70 shared database, 67 template-based. Translation Tools, 83 message selection, 20–21 libraries, PHPLIB, 7–8 Index 853 549669 Index.qxd 4/4/03 2:42 PM Page 853 lib.session_handler .php script, 151–153 links, forgotten password/central. 136 login .php script, 127–131 menu display, 136–137 purpose, 127 testing, 148–149 warning page, 137–138 login.conf script, 133–134 login.errors script, 136 login.html script, 136–137 login .php script,

Ngày đăng: 07/07/2014, 07:20

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN