// Start a session session_start(); if (!session_is_registered("auth")) { session_register("auth"); } $sessionId=session_id(); // open the mysql connection, $auth = false; // Assume user is not authenticated if (isset( $PHP_AUTH_USER ) && isset($PHP_AUTH_PW)) { $msqusername="phurteau"; $msqpassword="p41r64h"; $msqdbname="120158_1"; mysql_connect('localhost',$msqusername,$msqpassword); mysql_select_db($msqdbname); $tablename = "ccphaccess"; // makes this hunk more portable // Check username and password agains the database. $cmdstr = "select china from ccphaccess where ((loginid='$PHP_AUTH_USER') && (password='$PHP_AUTH_PW'));"; $result = mysql_query($cmdstr); $num = mysql_num_rows($result); if ( $num != 0 ) { $auth = true; } } if ( ! $auth ) { header( 'WWW-Authenticate: Basic realm="Creative Connnections Adventures"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit; } else { ?>
Folk stories are
an important part of every culture. They connect generations and teach young
people important values and cultural knowledge. In China, there's nearly an
endless supply of folk stories. We've included some of the more famous ones
in this section. Move your mouse over the titles below to see them in Chinese
characters, then click forward to read the stories. After you read a story,
click on the Tell
Me About It button for related footnotes and illustrations.
Note: Stories 1-6 can be also found in the China E-Travel Logs section.
Reading
Fun: Folk Stories |
© 2007 OneWorld Classrooms. All rights reserved.