Skip to content

Commit

Permalink
This just moves the function convertToArray from importsurvey.php to …
Browse files Browse the repository at this point in the history
…admin.php to be available to the other import files

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/stable_plus@3522 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Gustavo San Roman committed Oct 31, 2007
1 parent 7bc8512 commit 3263090
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions admin/admin.php
Expand Up @@ -438,5 +438,16 @@ function helpscreen()



function convertToArray($stringtoconvert, $seperator, $start, $end)
// this function is still used to read SQL files from version 1.0 or older
{
$begin=strpos($stringtoconvert, $start)+strlen($start);
$len=strpos($stringtoconvert, $end)-$begin;
$stringtoconvert=substr($stringtoconvert, $begin, $len);
$stringtoconvert=str_replace('\n',"\n",$stringtoconvert); //removes masking
$stringtoconvert=stripslashes($stringtoconvert);
$resultarray=explode($seperator, $stringtoconvert);
return $resultarray;
}

?>
11 changes: 0 additions & 11 deletions admin/importsurvey.php
Expand Up @@ -1051,16 +1051,5 @@

}

function convertToArray($stringtoconvert, $seperator, $start, $end)
// this function is still used to read SQL files from version 1.0 or older
{
$begin=strpos($stringtoconvert, $start)+strlen($start);
$len=strpos($stringtoconvert, $end)-$begin;
$stringtoconvert=substr($stringtoconvert, $begin, $len);
$stringtoconvert=str_replace('\n',"\n",$stringtoconvert); //removes masking
$stringtoconvert=stripslashes($stringtoconvert);
$resultarray=explode($seperator, $stringtoconvert);
return $resultarray;
}

?>

0 comments on commit 3263090

Please sign in to comment.