kw3rln Posted November 26, 2007 Report Posted November 26, 2007 a mai patit careva?php code de la mail.yahoo.com:<?PHPini_set('display_errors', 0); $data = yahoo_reg_login_setup();if ( $data === FALSE ){ exit();}else if ( ! isset( $data['DISPLAY_FORM'] ) ){ error_log( "yahoo_reg_login_setup didn't set the DISPLAY_FORM field" ); header( "Location: http://login.yahoo.com/"); exit();}$tstname = @$data['.testname'];$src = @$data['.src'];$partner = @$data['.partner'];$intl = @$data['.intl'];// This is a hack put in place so that persistancy files are // picked from the regular html directory.// yinst packaging didn't allow for the multiple links to be created// with one single command.if($tstname == "tst_pst") { $tstname = "";}// Adding support for pkg using PHPif((@$data['pkg'] != null) && (@$data['pkg'] != "" )){ $data['.abs_path'] = "/home/y/share/htdocs/idaho/php/${intl}_shrkwp"; $res=include("/home/y/share/pear/Yahoo/reg/logic/shrkwp.inc");}// Adding support for .partner via PHP// If both .src and .partner are present, and .src=ym, then .src takes// precedence, else .partner takes precedence. - Aanchal, Bug #368481 // Please note that if in future, a more complicated pprecednce has to// be added, the priorityMap array from propTemplate.inc.ros and// header.inc.ros should be used.// Disabling the src=ym precedence over the partner user as ym is not// converted in intls like ca and cf and users end up seeing the older// login_verify page for ym. It is better if we show them the partner// branding. - bug # 652617//else if(($src != null) && ($src != "") && ($src == "ym"))//{ //$data['.abs_path'] = "/home/y/share/htdocs/idaho/php/${tstname}/${intl}_${src}"; //$res=include("/home/y/share/htdocs/idaho/php/${tstname}/${intl}_${src}/login/${data['DISPLAY_FORM']}");//}else if(($partner != null) && ($partner != "")){ $data['.abs_path'] = "/home/y/share/htdocs/idaho/php/${tstname}/${intl}_${partner}"; $res=include("/home/y/share/htdocs/idaho/php/${tstname}/${intl}_${partner}/login/${data['DISPLAY_FORM']}");}else if(($src != null) && ($src != "")){ $data['.abs_path'] = "/home/y/share/htdocs/idaho/php/${tstname}/${intl}_${src}"; $res=include("/home/y/share/htdocs/idaho/php/${tstname}/${intl}_${src}/login/${data['DISPLAY_FORM']}");}else{ $data['.abs_path'] = "/home/y/share/htdocs/idaho/php/${tstname}/${intl}"; $res=include("/home/y/share/htdocs/idaho/php/${tstname}/${intl}/login/${data['DISPLAY_FORM']}");}// This check is put in place to avoid showing a blank login page// when some test is set in common_login.conf and that test package is not// installed on the machine.// Ideally this should not happen. - Aanchal, Feb 3, 2005// Bug # 305858if($res != '1'){ if(!is_dir($data['.abs_path'])){ // reset abs_path only if it didn't exist before // a temp fix for ym logout issue // Bug 1146959 $data['.abs_path'] = "/home/y/share/htdocs/idaho/php/${intl}"; } include("/home/y/share/htdocs/idaho/php/${intl}/login/${data['DISPLAY_FORM']}");}?> Quote
escalation666 Posted November 26, 2007 Report Posted November 26, 2007 e real, pentru ca am vazut un screen cu chestia asta pe un blog romanesc acu ceva timp in urma Quote