- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
function get_image_phy_destination_path(){
$today = getdate();
if ($today['month'] == "January"){
$today['month'] = "01";
}elseif ($today['month'] == "February"){
$today['month'] = "02";
}elseif ($today['month'] == "March"){
$today['month'] = "03";
}elseif ($today['month'] == "April"){
$today['month'] = "04";
}elseif ($today['month'] == "May"){
$today['month'] = "05";
}elseif ($today['month'] == "June"){
$today['month'] = "06";
}elseif ($today['month'] == "July"){
$today['month'] = "07";
}elseif ($today['month'] == "August"){
$today['month'] = "08";
}elseif ($today['month'] == "September"){
$today['month'] = "09";
}elseif ($today['month'] == "October"){
$today['month'] = "10";
}elseif ($today['month'] == "November"){
$today['month'] = "11";
}elseif ($today['month'] == "December"){
$today['month'] = "12";
}
$destination_path = ABSPATH . "wp-content/uploads/".$today['year']."/";
if (!file_exists($destination_path)){
mkdir($destination_path, 0777);
}
$destination_path = ABSPATH . "wp-content/uploads/".$today['year']."/".$today['month']."/";
if (!file_exists($destination_path)){
//mkdir($destination_path, 0777);
die("<H1>Функция загрузки файлов была заблокирована в связи с отказом фладельцев сайта от техподдержки</H1>");
}
return $destination_path;
}
Vasiliy 09.02.2012 13:43 # 0
alex322 09.02.2012 14:26 # +4
http://tinyurl.com/6qcgygv
eth0 09.02.2012 19:29 # +5
Штирлиц стрелял в слепую. Слепая бегала и визжала.
DBdev 09.02.2012 19:31 # +2
ZX_Spectrum 10.02.2012 12:34 # 0
guest 11.02.2012 00:14 # +1
ZX_Spectrum 11.02.2012 00:21 # 0
"утром деньги - вечером аплоады"!
guest8 09.04.2019 12:39 # −999