function GoDaddy_linux_instructions($html_dir) { $self = get_self(); $loader_name = get_loader_name(); $zend_extension_line = "<code>zend_extension = {$html_dir}/ioncube/{$loader_name}</code>"; $ini_path = $html_dir . "/php5.ini"; $instr = array(); $instr[] = 'In your html directory, ' . $html_dir . ', create a sub-directory called <b>ioncube</b>.'; if (file_exists($ini_path)) { $instr[] = "Edit the php5.ini in your {$html_dir} and add the following line to the <b>top</b> of the file:<br>" . $zend_extension_line; } else { $instr[] = "<a href=\"{$self}?page=phpini\">Save this php5.ini file</a> and upload it to your html directory, {$html_dir}"; } $instr[] = 'Download the <a target="_blank" href="http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.zip">Linux Loaders</a>.'; $instr[] = 'Unzip the loaders and upload them into the ioncube directory you created previously.'; $instr[] = 'The encoded files should now be working.'; echo '<div class=panel>'; echo make_list($instr); echo '</div>'; }
function GoDaddy_linux_instructions($html_dir) { $base = get_base_address(); $loader_name = get_loader_name(); $zend_extension_line = "<code>zend_extension = {$html_dir}/ioncube/{$loader_name}</code>"; $php_ini_name = is_php_version_or_greater(5, 0) ? 'php5.ini' : 'php.ini'; $ini_path = $html_dir . '/' . $php_ini_name; $instr = array(); $instr[] = 'In your html directory, ' . $html_dir . ', create a sub-directory called <b>ioncube</b>.'; if (@file_exists($ini_path)) { $instr[] = "Edit the {$php_ini_name} in your {$html_dir} and add the following line to the <b>top</b> of the file:<br>" . $zend_extension_line; } else { $instr[] = "<a href=\"{$base}&page=phpconfig&ininame={$php_ini_name}&stype=s&download=1&prepend=1\">Save this {$php_ini_name} file</a> and upload it to your html directory, {$html_dir}"; } $instr[] = 'Download the <a target="_blank" href="http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.zip">Linux ionCube Loaders</a>.'; $instr[] = 'Unzip the loaders and upload them into the ioncube directory you created previously.'; $instr[] = 'The encoded files should now be working.'; echo '<div class=panel>'; echo make_list($instr); echo '</div>'; }