About 97 results: "php md5 repo:kuaileshike/upload"
Page 1 of 5
Filter Results
Sources
Languages
Filter Results
Try Search On




function_admincp.php in upload https://github.com/kuaileshike/upload.git | 1461 lines | PHP
  1. 
                        
  2. 	return 'os=dx&update='.rawurlencode(base64_encode($data)).'&md5hash='.substr(md5($_SERVER['HTTP_USER_AGENT'].implode('', $update).TIMESTAMP), 8, 8).'&timestamp='.TIMESTAMP;
  3. 				if($menu[2] == 1) {
  4. 					$id = 'M'.substr(md5($menu[0]), 0, 8);
  5. 					$onclick && $onclick = ' onclick="'.$onclick.'"';
  6. 					$s .= '<li'.($radiocheck[$varary[0]] ? ' class="checked"' : '').$addstyle.'><input class="radio" type="radio"'.($varnameid ? ' id="_v'.md5($varary[0]).'_'.$varnameid.'"' : '').' name="'.$varname[0].'" value="'.$varary[0].'"'.$radiocheck[$varary[0]].$check['disabled'].$onclick.'>&nbsp;'.$varary[1].'</li>';
  7. 				$checked = is_array($value) && in_array($varary[0], $value) ? ' checked' : '';
  8. 				$s .= '<li'.($checked ? ' class="checked"' : '').$addstyle.'><input class="checkbox" type="checkbox"'.($varnameid ? ' id="_v'.md5($varary[0]).'_'.$varnameid.'"' : '').' name="'.$varname[0].'[]" value="'.$varary[0].'"'.$checked.$check['disabled'].$onclick.'>&nbsp;'.$varary[1].'</li>';
  9. 			if($var !== false) {
  10. 				$s .= '<li'.($value{$checkboxs - $i} ? ' class="checked"' : '').'><input class="checkbox" type="checkbox"'.($varnameid ? ' id="_v'.md5($i).'_'.$varnameid.'"' : '').' name="'.$varname[0].'['.$i.']" value="1"'.($value{$checkboxs - $i} ? ' checked' : '').' '.(!empty($varname[2][$key]) ? $varname[2][$key] : '').'>&nbsp;'.$var.'</li>';
  11. 	$name = $disabled ? '<span class="lightfont">'.$name.'</span>' : $name;
  12. 	$setid = !$setid ? substr(md5($setname), 0, 4) : $setid;
  13. 	$siteftp['on'] = 1;
  14. 	$siteftp['password'] = authcode($siteftp['password'], 'ENCODE', md5($_G['config']['security']['authkey']));


admincp_upgrade.php in upload https://github.com/kuaileshike/upload.git | 416 lines | PHP
  1. 	if($_GET['ungetfrom']) {
  2. 		if(md5($_GET['ungetfrom'].$_G['config']['security']['authkey']) == $_GET['ungetfrommd5']) {
  3. 			$dbreturnurl = $_G['siteurl'].ADMINSCRIPT.'?action=upgrade&operation='.$operation.'&version='.$version.'&release='.$release.'&step=5';
  4. 			dheader('Location: '.$_G['siteurl'].'install/update.php?step=prepare&from='.rawurlencode($dbreturnurl).'&frommd5='.rawurlencode(md5($dbreturnurl.$_G['config']['security']['authkey'])));
  5. 		$updatefilelist = $discuz_upgrade->fetch_updatefile_list($upgradeinfo);
  6. 		$updatemd5filelist = $updatefilelist['md5'];
  7. 		} else {
  8. 			$downloadstatus = $discuz_upgrade->download_file($upgradeinfo, $updatefilelist[$fileseq-1], 'upload', $updatemd5filelist[$fileseq-1], $position, $offset);
  9. 		if(empty($modifylist) && empty($showlist) && empty($ignorelist)) {
  10. 			cpmsg('filecheck_nofound_md5file', '', 'error', array('upgradeurl' => upgradeinformation(-4)));
  11. 			$dbreturnurl = $_G['siteurl'].ADMINSCRIPT.'?action=upgrade&operation='.$operation.'&version='.$version.'&release='.$release.'&step=5';
  12. 			cpmsg('upgrade_file_successful', $_G['siteurl'].'install/update.php?step=prepare&from='.rawurlencode($dbreturnurl).'&frommd5='.rawurlencode(md5($dbreturnurl.$_G['config']['security']['authkey'])), '', array('upgradeurl' => upgradeinformation(4)));
  13. 		$old_update_dir = './data/update/';
  14. 		$new_update_dir = './data/update'.md5('update'.$_G['config']['security']['authkey']).'/';
  15. 		$old_back_dir = './data/back/';
  16. 		$new_back_dir = './data/back'.md5('back'.$_G['config']['security']['authkey']).'/';














Back to Top