About 61 results: "php strtolower repo:Arantor/Elkarte"
Page 1 of 4
Filter Results
Sources
Languages
Filter Results
Try Search On
Packages.php in Elkarte https://github.com/Arantor/Elkarte.git | 2709 lines | PHP
  1. 					elseif (isset($mod_action['filename']) && preg_match('~([\w]*)/([\w]*)\.template\.php$~', $mod_action['filename'], $matches))
  2. 						$actual_filename = strtolower($matches[1] . '/' . $matches[2] . '.template.php' . '||' . $action['filename']);
  3. 					if (isset($mod_action['filename']) && substr($mod_action['filename'], -13) != '.template.php')
  4. 						$actual_filename = strtolower(substr(strrchr($mod_action['filename'], '/'), 1) . '||' . $action['filename']);
  5. 					elseif (isset($mod_action['filename']) && preg_match('~([\w]*)/([\w]*)\.template\.php$~', $mod_action['filename'], $matches))
  6. 				elseif ($matches[1] == 'themes_dir')
  7. 					$themeFinds['other_themes'][] = strtolower(strtr(parse_path($action['unparsed_filename']), array('\\' => '/')) . '/' . basename($action['filename']));
  8. 					// Confirm that we don't already have this dealt with by another entry.
  9. 					if (!in_array(strtolower(strtr($real_path, array('\\' => '/'))), $themeFinds['other_themes']))
  10. 	// Let the unpacker do the work.... but make sure we handle images properly.
  11. 	if (in_array(strtolower(strrchr($_REQUEST['file'], '.')), array('.bmp', '.gif', '.jpeg', '.jpg', '.png')))
  12. 
                        
  13. 		if (strtolower(strrchr($_REQUEST['file'], '.')) == '.php')
  14. 		{
  15. 			if ($package == '.' || $package == '..' || $package == 'temp' || (!(is_dir(BOARDDIR . '/packages/' . $package) && file_exists(BOARDDIR . '/packages/' . $package . '/package-info.xml')) && substr(strtolower($package), -7) != '.tar.gz' && substr(strtolower($package), -4) != '.tgz' && substr(strtolower($package), -4) != '.zip'))
  16. 						{
  17. 							$packages['modification'][strtolower($packageInfo[$sort]) . '_' . $sort_id['mod']] = $packageInfo['id'];




















Back to Top