"PHP" / Говнокод #25606 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
<?php 
$css_fold = 'css/';
$js_fold = 'js/';
$css_files= scandir($css_fold);
$js_files= scandir($js_fold);

foreach ($js_files as $js_file) {
	if(preg_match('/\.(js)/', $js_file)){
		if (substr($js_file, -3)==".js") {
			echo'<script src="js/'.$js_file.'"></script>'.PHP_EOL;
		}
	}
}

foreach ($css_files as $css_file) {
	if(preg_match('/\.(css)/', $css_file)){
		if (substr($css_file, -4)==".css") {
			echo'<link rel="stylesheet" type="text/css" href="css/'.$css_file.'">'.PHP_EOL;
		}
	}
}
?>

Подтягиваем все из css и js

Запостил: ZombiePm ZombiePm, (Updated )

Комментарии (6) RSS

  • ⚫⚪⚪⚫⚪⚪⚪⚫⚫⚫⚪⚪⚫⚪⚪⚫⚪⚪⚪⚫⚫⚫⚪⚪⚪⚫⚫⚫⚪⚪⚪⚪⚫⚫⚫⚫⚫⚪⚪⚫⚫⚫⚪⚪⚫⚫⚫⚫⚫⚪⚪⚫⚫⚫⚪⚪⚫⚫⚫⚫⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪
    ⚫⚪⚪⚫⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚫⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚫⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚫⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪
    ⚫⚫⚫⚪⚪⚪⚫⚪⚪⚪⚫⚪⚫⚫⚫⚪⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚫⚫⚪⚪⚪⚫⚫⚫⚫⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚫⚪⚫⚫⚫⚫⚪⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪
    ⚫⚪⚪⚫⚪⚪⚫⚫⚫⚫⚫⚪⚫⚪⚪⚫⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚫⚪⚫⚪⚪⚪⚫⚪⚪⚪⚫⚪⚫⚫⚫⚫⚫⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚪⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪
    ⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚫⚪⚫⚫⚪⚪⚫⚪⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪
    ⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚫⚪⚪⚫⚫⚫⚪⚪⚫⚪⚪⚪⚫⚪⚪⚪⚫⚫⚫⚫⚪⚪⚫⚪⚪⚪⚫⚪⚫⚪⚪⚪⚪⚪⚪⚫⚫⚫⚪⚪⚫⚪⚪⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪⚪⚪⚫⚪⚪⚪
    Ответить

Добавить комментарий

Где здесь C++, guest?!

    А не использовать ли нам bbcode?


    8