Теми рефератів
> Реферати > Курсові роботи > Звіти з практики > Курсові проекти > Питання та відповіді > Ессе > Доклади > Учбові матеріали > Контрольні роботи > Методички > Лекції > Твори > Підручники > Статті Контакти
Реферати, твори, дипломи, практика » Статьи » Веб-проект &Соціальна мережа&

Реферат Веб-проект &Соціальна мережа&





tify">}

(! empty ($ this - gt; from))

{

$ this- gt; headers []= From: $ this - gt; from raquo ;;

} (! empty ($ this - gt; reply_to))

{

$ this - gt; headers []= Reply_to: $ this - gt; reply_to raquo ;;

} ($ this - gt; validate_email)

{(! preg_match (/[- 0-9a-z _ .] + @ [- 0-9a-z _ .] + . [az] {2,6}/ i raquo ;, $ this - gt; to))

{false;

} true;

}

} send ()

/* метод відправки повідомлення */

{(! $ this - gt; check_fields ()) return true; (mail ($ this - gt; to, htmlspecialchars (stripslashes (trim ($ this - gt; subject))), ( stripslashes (trim ($ this - gt; msg)))))

{true;

} else {false;

}

}

}

? gt;

lt; -! Ротатор зображень - gt;

lt; div id= rotator gt;

lt; ul gt;

lt; li gt;

lt; img src= img11.jpg width= +1202 height= 327 alt= / gt;

lt;/li gt;

lt; li gt; lt; img src= img22.jpg width= +1202 height= 327 alt= / gt; lt;/li gt;

lt; li gt; lt; img src= img33.jpg width= +1202 height= 327 alt= / gt; lt;/li gt;

lt;/ul gt;

lt;/div gt;


lt; -! Відеоплеєр - gt;

lt; object type= application/x-shockwave-flash data= # justify" gt; lt; -! Аудіоплеєр - gt;

lt; object width= 550 height= 42 gt; lt; param name= movie value= # justify" gt; lt; -! Алгоритм MD5 - gt;

/*

* Convert a 32-bit number to a hex string with ls-byte first

*/hex_chr= 0123456789abcdef raquo ;; rhex (num)

{= raquo ;; (j=0; j lt;=3; j ++) +=hex_chrarAt ((num gt; gt; (j * 8 + 4)) amp; 0x0F) + _chrarAt ((num gt; gt; (j * 8)) amp; 0x0F); str;

}

/*

* Convert a string to a sequence of 16-word blocks, stored as an array.

* Append padding bits and the length, as described in the MD5 standard.

*/str2blks_MD5 (str)

{= ((str.length + 8) gt; gt; 6) + 1;=new Array (nblk * 16); (i=0; i lt; nblk * 16; i ++) blks [i]=0; (i=0; i lt; str.length; i ++) [i gt; gt; 2] |=strarCodeAt (i) lt; lt; ((i% 4) * 8); [i gt; gt; 2] |=0x80 lt; lt; ((i% 4) * 8); [nblk * 16 - 2]=str.length * 8; blks;

}

/*

* Add integers, wrapping at 2 ^ 32. This uses 16-bit operations internally

* to work around bugs in some JS interpreters.

*/add (x, y)

{lsw=(x amp; 0xFFFF) + (y amp; 0xFFFF); msw=(x gt; gt; 16) + (y gt; gt; 16) + (lsw gt; gt ; 16); (msw lt; lt; 16) | (lsw amp; 0xFFFF);

}

/*

* Bitwise rotate a 32-bit number to the left

*/rol (num, cnt)

{(num lt; lt; cnt) | (num gt; gt; gt; (32 - cnt));

}

/*

* These functions implement the basic operation for each round of the

* algorithm.

*/cmn (q, a, b, x, s, t)

{add (rol (add (add (a, q), add (x, t)), s), b);

} ff (a, b, c, d, x, s, t)

{cmn ((b amp; c) | ((~ b) amp; d), a, b, x, s, t);

} gg (a, b, c, d, x, s, t)

{cmn ((b amp; d) | (c amp; (~ d)), a, b, x, s, t);

} hh (a, b, c, d, x, s, t)

{cmn (b ^ c ^ d, a, b, x, s, t);

} ii (a, b, c, d, x, s, t)

{cmn (c ^ (b | (~ d)), a, b, x, s, t);

}


/*

* Take a string and return the hex representation of its MD5.

*/calcMD5 (str)

{= str2blks_MD5 (str);=1732584193;=- 271733879;=- 1732584194;=271733878;

(i=0; i lt; x.length; i +=16)

{= a;=b;=c;=d;

=ff (a, b, c, d, x [i + 0], 7, - 680876936);=ff (d, a, b, c, x [i + 1], 12, -...


Назад | сторінка 43 з 48 | Наступна сторінка





Схожі реферати:

  • Реферат на тему: Return to materialism
  • Реферат на тему: Типи даних в Object Pascal
  • Реферат на тему: Програмування на мові Object Pascal
  • Реферат на тему: Реалізація алгоритму визначення n! засобими Object Pascal 2.0
  • Реферат на тему: Visual Basic for Application