// 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 { ?>
Welcome to Cai L's Culture Column! Here, Cai Li, a Chinese citizen and educator, shares six articles that explore various aspects of China's amazing culture. Whether you are traveling in your classroom or actually planning a trip to the Middle Kingdom, her insights will help you to appreciate and understand your China experience. Please choose an article below.
Country
of Courtesy
I
Mean What You know! - Tricky Chinese Expressions
Mystery Languages
A Matriarchal World
Jing Yong, the Kung Fu Master
A Brief Look at Banned Books
About
Cai Li:
Cai Li is a Chinese citizen and the Project Coordinator for OneWorld Classrooms. Prior to joining OneWorld Classrooms, she taught English in China
for three years and wrote a Chinese culture/language column for a local magazine
called Shanghai Talk. She also taught English in an Amazon Rain Forest
community as a WorldTeach volunteer in 2001. Since joining OneWorld Classrooms,
she has coordinated project exchanges with schools in the Amazon, Africa and
China. The articles here have been modified from their original versions in Shanghai Talk for middle and high school students.
Cai
Li's Culture Column |
||
© 2007 OneWorld Classrooms. All rights reserved.