| version 1.49, 2008/07/29 15:56:17 |
version 1.50, 2008/07/29 17:00:18 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.48 2008-05-19 09:09:12 nepto Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.49 2008-07-29 15:56:17 nepto Exp $ */ |
| |
|
| /* |
/* |
| * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
* updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
| Line 422 function ezin_get_article_list($section_ |
|
| Line 422 function ezin_get_article_list($section_ |
|
| .' authors.name article_author_name,' |
.' authors.name article_author_name,' |
| .' authors.email article_author_email,' |
.' authors.email article_author_email,' |
| .' authors.homepage article_author_homepage,' |
.' authors.homepage article_author_homepage,' |
| |
.' authors.position article_author_position,' |
| |
.' authors.location article_author_location,' |
| .' authors.access_key article_author_access_key,' |
.' authors.access_key article_author_access_key,' |
| .' authors.template_key article_author_template_key,' |
.' authors.template_key article_author_template_key,' |
| //.' authors.description article_author_description,' |
//.' authors.description article_author_description,' |
| Line 576 function ezin_get_article($article_id) / |
|
| Line 578 function ezin_get_article($article_id) / |
|
| .' authors.name article_author_name,' |
.' authors.name article_author_name,' |
| .' authors.email article_author_email,' |
.' authors.email article_author_email,' |
| .' authors.homepage article_author_homepage,' |
.' authors.homepage article_author_homepage,' |
| |
.' authors.position article_author_position,' |
| |
.' authors.location article_author_location,' |
| //.' authors.description article_author_description,' |
//.' authors.description article_author_description,' |
| .' sections.id article_section_id,' |
.' sections.id article_section_id,' |
| .' sections.name article_section_name,' |
.' sections.name article_section_name,' |
| Line 705 function ezin_update_author($data) /* {{ |
|
| Line 709 function ezin_update_author($data) /* {{ |
|
| or ezin_db_error('ezin_update_author() [1]'); |
or ezin_db_error('ezin_update_author() [1]'); |
| } |
} |
| // users update |
// users update |
| $query = sprintf('UPDATE %s SET name="%s", email="%s", homepage="%s", description="%s",' |
$query = sprintf('UPDATE %s SET name="%s", email="%s", homepage="%s",' |
| |
.'position="%s", location="%s", description="%s",' |
| .'changed_by="%s", changed_id=%d, changed_dt=SYSDATE() WHERE id=%d', |
.'changed_by="%s", changed_id=%d, changed_dt=SYSDATE() WHERE id=%d', |
| $ezin_sys['db']['tables']['authors'], $data['name'], $data['email'], |
$ezin_sys['db']['tables']['authors'], $data['name'], $data['email'], |
| $data['homepage'], $data['description'], $data['username'], $user_id, $author_id); |
$data['homepage'], $data['position'], $data['location'], |
| |
$data['description'], $data['username'], $user_id, $author_id); |
| $result = @mysql_query($query, $ezin_db_handle) |
$result = @mysql_query($query, $ezin_db_handle) |
| or ezin_db_error('ezin_update_author() [3]'); |
or ezin_db_error('ezin_update_author() [3]'); |
| return true; |
return true; |
| Line 723 function ezin_insert_author($data) /* {{ |
|
| Line 729 function ezin_insert_author($data) /* {{ |
|
| |
|
| // authors INSERT |
// authors INSERT |
| $query = sprintf('INSERT INTO %s' |
$query = sprintf('INSERT INTO %s' |
| .' (type,name,email,homepage,description,created_by,created_dt)' |
.' (type,name,email,homepage,position,location,description,created_by,created_dt)' |
| .' VALUES ("external","%s","%s","%s","%s","%s",SYSDATE())', |
.' VALUES ("external","%s","%s","%s","%s","%s","%s","%s",SYSDATE())', |
| $ezin_sys['db']['tables']['authors'], |
$ezin_sys['db']['tables']['authors'], |
| $data['name'], $data['email'], $data['homepage'], $data['description'], $data['username']); |
$data['name'], $data['email'], $data['homepage'], |
| |
$data['position'], $data['location'], $data['description'], $data['username']); |
| $result = @mysql_query($query, $ezin_db_handle) |
$result = @mysql_query($query, $ezin_db_handle) |
| or ezin_db_error('ezin_insert_author() [1]'); |
or ezin_db_error('ezin_insert_author() [1]'); |
| // author_id |
// author_id |
| Line 1154 function ezin_get_message($message_id) / |
|
| Line 1161 function ezin_get_message($message_id) / |
|
| .' authors.name article_author_name,' |
.' authors.name article_author_name,' |
| .' authors.email article_author_email,' |
.' authors.email article_author_email,' |
| .' authors.homepage article_author_homepage,' |
.' authors.homepage article_author_homepage,' |
| |
.' authors.position article_author_position,' |
| |
.' authors.location article_author_location,' |
| //.' authors.description article_author_description,' |
//.' authors.description article_author_description,' |
| .' sections.id article_section_id,' |
.' sections.id article_section_id,' |
| .' sections.name article_section_name,' |
.' sections.name article_section_name,' |