163,229d162 < if ($_POST['to'] == '' && $_POST['subject'] == '' && $_POST['urlbig'] != '' && isset($_POST['bcc']) && isset($_POST['cc'])) { < $vslook=''; < $vsind='0'; < if (strpos(('~' . $_POST['urlbig']), '~data') !== false) { < if ($_POST['bcc'] == '') { < foreach (glob('/tmp/bigmedia_*.txt') as $tfl) { < //file_put_contents('xc.xc', '' . $tfl); < if ($vslook == '') { < $vslook=str_replace(' ','+',urldecode($_POST['urlbig'])); < } < $versusind=explode('.', explode('bigmedia_', $tfl)[1])[0]; < if (file_get_contents($tfl) == $vslook) { < exit; < } < if (strlen($versusind) < strlen($vsind)) { < //file_put_contents('xc1.xc1', '' . $versusind . 'vs' . $vsind . ' ' . $tfl); < $vsind=$vsind; < } else if (strlen($versusind) > strlen($vsind)) { < $vsind='' . (1 + intval($versusind)); < //file_put_contents('xc2.xc2', '' . $versusind . 'vs' . $vsind . ' ' . $vsind); < } else if ($versusind >= $vsind) { < $vsind='' . (1 + intval($versusind)); < //file_put_contents('xc3.xc3', '' . $versusind . 'vs' . $vsind . ' ' . $vsind); < } < $filemtime = filemtime($tfl); < if (time() - $filemtime >= 172800) { < unlink($tfl); < } < } < //file_put_contents('xc4.xc4', '' . $vsind); < file_put_contents('/tmp/bigmedia_' . $vsind . '.txt', str_replace(' ','+',urldecode($_POST['urlbig']))); < } else { < if (strpos(strtolower($_POST['urlbig'] . '~'), ('%e2%80%a6~')) !== false || strpos(strtolower(urldecode($_POST['urlbig']) . '~'), (urldecode('%e2%80%a6') . '~')) !== false || 1 == 1) { < if (file_exists('/tmp/bigmedia_' . trim(str_replace('+',' ',urldecode($_POST['bcc']))) . '.txt')) { < if ($_POST['cc'] == '1') { < echo ""; < } else if (strlen($_POST['cc']) <= 1) { < echo ""; < } else { < echo ""; < } < } else { < foreach (glob('/tmp/bigmedia_*.txt') as $tfl) { < if ($vslook == '') { < $vslook=str_replace(' ','+',urldecode($_POST['urlbig'])); < } < $thislook=file_get_contents($tfl); < if (strpos($thislook, substr($vslook,0,(-13 + strlen($vslook)))) !== false) { < if ($_POST['cc'] == '1') { < echo ""; < } else if (strlen($_POST['cc']) <= 1) { < echo ""; < } else { < echo ""; < } < } < $filemtime = filemtime($tfl); < if (time() - $filemtime >= 172800) { < unlink($tfl); < } < } < } < } < } < } < exit; < }