[Phpslash-commit] CVS: phpslash-dev/scripts db_xfer.php.disabled,1.5,1.6
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2004-10-18 20:47:05
|
Update of /cvsroot/phpslash/phpslash-dev/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30647/phpslash-dev/scripts Modified Files: db_xfer.php.disabled Log Message: corrected bug - [ 1035199 ] [0.8] - upgrade script doesn't upgrade all sections. Index: db_xfer.php.disabled =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/scripts/db_xfer.php.disabled,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** db_xfer.php.disabled 14 Oct 2004 17:55:32 -0000 1.5 --- db_xfer.php.disabled 18 Oct 2004 20:46:39 -0000 1.6 *************** *** 194,197 **** --- 194,203 ---- + $sections = $section->getSections(); + + foreach($sections as $key => $value) { + $section_array[] = $value['id']; + } + // Add the "Public Page header" block $content .= getMessage("Adding Public Page Header Block"); *************** *** 206,222 **** $ary['ordernum'] = '95'; ! $section_id_ary = array(); ! $section_id_ary[] = $section->getId("About"); ! // $section_id_ary[] = $section->getId("Admin"); ! $section_id_ary[] = $section->getId("features"); ! $section_id_ary[] = $section->getId("Glossary"); ! $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("interviews"); ! $section_id_ary[] = $section->getId("MailingList"); ! $section_id_ary[] = $section->getId("Poll"); ! $section_id_ary[] = $section->getId("Search"); ! $section_id_ary[] = $section->getId("Submission"); ! $section_id_ary[] = $section->getId("test"); ! $section_id_ary[] = $section->getId("User"); $ary['section_id_ary'] = $section_id_ary; --- 212,223 ---- $ary['ordernum'] = '95'; ! $section_id_ary = $section_array; ! // Public pages only ! $id = $section->getId("Admin"); ! foreach($section_array as $key => $value) { ! if($value == $id) { ! unset($section_id_ary[$key]); ! } ! } $ary['section_id_ary'] = $section_id_ary; *************** *** 283,299 **** $ary['ordernum'] = '5'; ! $section_id_ary = array(); ! $section_id_ary[] = $section->getId("About"); ! $section_id_ary[] = $section->getId("Admin"); ! $section_id_ary[] = $section->getId("features"); ! $section_id_ary[] = $section->getId("Glossary"); ! $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("interviews"); ! $section_id_ary[] = $section->getId("MailingList"); ! $section_id_ary[] = $section->getId("Poll"); ! $section_id_ary[] = $section->getId("Search"); ! $section_id_ary[] = $section->getId("Submission"); ! $section_id_ary[] = $section->getId("test"); ! $section_id_ary[] = $section->getId("User"); $ary['section_id_ary'] = $section_id_ary; --- 284,288 ---- $ary['ordernum'] = '5'; ! $section_id_ary = $section_array; $ary['section_id_ary'] = $section_id_ary; *************** *** 325,342 **** $ary['ordernum'] = '80'; ! $section_id_ary = array(); ! $section_id_ary[] = $section->getId("About"); ! $section_id_ary[] = $section->getId("Admin"); ! $section_id_ary[] = $section->getId("features"); ! $section_id_ary[] = $section->getId("Glossary"); ! $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("interviews"); ! $section_id_ary[] = $section->getId("MailingList"); ! $section_id_ary[] = $section->getId("Poll"); ! $section_id_ary[] = $section->getId("Search"); ! $section_id_ary[] = $section->getId("Submission"); ! $section_id_ary[] = $section->getId("test"); ! $section_id_ary[] = $section->getId("User"); ! $ary['section_id_ary'] = $section_id_ary; --- 314,319 ---- $ary['ordernum'] = '80'; ! $section_id_ary = $section_array; ! $ary['section_id_ary'] = $section_id_ary; *************** *** 367,384 **** $ary['ordernum'] = '60'; ! $section_id_ary = array(); ! $section_id_ary[] = $section->getId("About"); ! $section_id_ary[] = $section->getId("Admin"); ! $section_id_ary[] = $section->getId("features"); ! $section_id_ary[] = $section->getId("Glossary"); ! $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("interviews"); ! $section_id_ary[] = $section->getId("MailingList"); ! $section_id_ary[] = $section->getId("Poll"); ! $section_id_ary[] = $section->getId("Search"); ! $section_id_ary[] = $section->getId("Submission"); ! $section_id_ary[] = $section->getId("test"); ! $section_id_ary[] = $section->getId("User"); ! $ary['section_id_ary'] = $section_id_ary; --- 344,349 ---- $ary['ordernum'] = '60'; ! $section_id_ary = $section_array; ! $ary['section_id_ary'] = $section_id_ary; *************** *** 409,426 **** $ary['ordernum'] = '10'; ! $section_id_ary = array(); ! $section_id_ary[] = $section->getId("About"); ! $section_id_ary[] = $section->getId("Admin"); ! $section_id_ary[] = $section->getId("features"); ! $section_id_ary[] = $section->getId("Glossary"); ! $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("interviews"); ! $section_id_ary[] = $section->getId("MailingList"); ! $section_id_ary[] = $section->getId("Poll"); ! $section_id_ary[] = $section->getId("Search"); ! $section_id_ary[] = $section->getId("Submission"); ! $section_id_ary[] = $section->getId("test"); ! $section_id_ary[] = $section->getId("User"); ! $ary['section_id_ary'] = $section_id_ary; --- 374,379 ---- $ary['ordernum'] = '10'; ! $section_id_ary = $section_array; ! $ary['section_id_ary'] = $section_id_ary; *************** *** 451,466 **** $ary['ordernum'] = '97'; ! $section_id_ary = null; ! $section_id_ary[] = $section->getId("features"); ! $section_id_ary[] = $section->getId("Glossary"); ! $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("interviews"); ! $section_id_ary[] = $section->getId("MailingList"); ! $section_id_ary[] = $section->getId("Poll"); ! $section_id_ary[] = $section->getId("Search"); ! $section_id_ary[] = $section->getId("Submission"); ! $section_id_ary[] = $section->getId("test"); ! $section_id_ary[] = $section->getId("User"); ! $ary['section_id_ary'] = $section_id_ary; --- 404,416 ---- $ary['ordernum'] = '97'; ! $section_id_ary = $section_array; ! // Public pages only ! $id = $section->getId("Admin"); ! foreach($section_array as $key => $value) { ! if($value == $id) { ! unset($section_id_ary[$key]); ! } ! } ! $ary['section_id_ary'] = $section_id_ary; *************** *** 709,715 **** $section_id_ary = null; ! $section_id_ary[] = $section->getId("features"); $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("interviews"); $ary['section_id_ary'] = $section_id_ary; --- 659,666 ---- $section_id_ary = null; ! // $section_id_ary[] = $section->getId("features"); $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("Poll"); ! // $section_id_ary[] = $section->getId("interviews"); $ary['section_id_ary'] = $section_id_ary; *************** *** 742,748 **** $section_id_ary = null; ! $section_id_ary[] = $section->getId("features"); $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("interviews"); $ary['section_id_ary'] = $section_id_ary; --- 693,699 ---- $section_id_ary = null; ! // $section_id_ary[] = $section->getId("features"); $section_id_ary[] = $section->getId("Home"); ! // $section_id_ary[] = $section->getId("interviews"); $ary['section_id_ary'] = $section_id_ary; *************** *** 777,792 **** $ary['ordernum'] = '0'; ! $section_id_ary = null; ! $section_id_ary[] = $section->getId("About"); ! $section_id_ary[] = $section->getId("features"); ! $section_id_ary[] = $section->getId("Home"); ! $section_id_ary[] = $section->getId("interviews"); ! $section_id_ary[] = $section->getId("MailingList"); ! $section_id_ary[] = $section->getId("Poll"); ! $section_id_ary[] = $section->getId("Search"); ! $section_id_ary[] = $section->getId("Submission"); ! $section_id_ary[] = $section->getId("test"); ! $section_id_ary[] = $section->getId("User"); ! $ary['section_id_ary'] = $section_id_ary; --- 728,740 ---- $ary['ordernum'] = '0'; ! $section_id_ary = $section_array; ! // Public pages only ! $id = $section->getId("Admin"); ! foreach($section_array as $key => $value) { ! if($value == $id) { ! unset($section_id_ary[$key]); ! } ! } ! $ary['section_id_ary'] = $section_id_ary; *************** *** 844,847 **** --- 792,796 ---- function xfer_sections() { + $db = pslNew("slashDB"); $section = pslNew("Section"); |